Re: There is a error in a simple source

2008-12-28 Thread John W. Krahn
John W. Krahn wrote: mobile.parmeni...@gmail.com wrote: I'm new to perl. The following code is wrong., and I can not spot it. Any suggestion? Thx. #!/usr/bin/perl -w #!/usr/bin/perl use warnings; use strict; &init_words (); init_words(); my %word; sub init_words{ while ( $filenam

Re: There is a error in a simple source

2008-12-28 Thread John W. Krahn
emenzhaow...@gmail.com wrote: looks like you missed the closing brace of sub. Incorrect. It is there. John -- Those people who think they know everything are a great annoyance to those of us who do.-- Isaac Asimov -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additio

Re: There is a error in a simple source

2008-12-28 Thread emenzhaow...@gmail.com
looks like you missed the closing brace of sub. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Printing a constant array

2008-12-28 Thread Jenda Krynicky
From: Rob Dixon > bacoms wrote: > > > > Ho, I wanted to declare an HTML list as a constant array and then > > print it but cannot work out the stntax. > > > > This is what I've coded; > > > > use constant NAVTABSLIST => ["\n", > >

Re: Printing a constant array

2008-12-28 Thread Rob Dixon
bacoms wrote: > > Ho, I wanted to declare an HTML list as a constant array and then > print it but cannot work out the stntax. > > This is what I've coded; > > use constant NAVTABSLIST => ["\n", > " > \n", >

Re: Printing a constant array

2008-12-28 Thread bacoms
Thanks Shawn and Chas for replying. For the moment I'll use the print @{ NAVTABSLIST() }; solution. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/