
spider
User

Aug 10, 2009, 4:41 AM
Post #4 of 5
(502 views)
|
Ok, it works, but that does not make it correct. The only reason it is working is because it is the last action of the script. If he wanted the script to do anything after the print, it would fail because perl are not done with the print. Ex:
my $new = "perl" ; print "$new" Will print out perl, but the next one will fail with a syntax error because the second my is noe a vaild parameter to the first print.
my $new = "perl" ; print "$new\n" my $new2 = "perl" ; print "$new2\n"
|