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
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
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/
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",
> >
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",
>
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/