RE: Another simple program which wont work.

2002-01-12 Thread Mike Rapuano
#!/usr/bin/perl-w use strict; my @a= (1, 2, 3, 4); foreach my $word(@a){ print $word ; } try this... Mike -Original Message- From: rabs [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 12, 2002 8:01 PM To: [EMAIL PROTECTED] Subject: Another simple program which wont work. Hi every

RE: Another simple program which wont work.

2002-01-12 Thread Wagner-David
SInce you are running with strict, then all your variables would need to be fully gualified(ie, $main::a, $main::word, etc) or if you add my to each variable, then it would work. Wags ;) -Original Message- From: rabs [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 12, 2002 1

Re: Another simple program which wont work.

2002-01-12 Thread John W. Krahn
Rabs wrote: > > Hi everyone Im trying to get this script to work, I am wondering if anyone > in this group can help me. > > #!/usr/bin/perl-w > use strict; > > @a= (1, 2, 3, 4); > foreach $word(@a){ > print $word ; > } > > When I run this script I get the following error messages, can you ex