yields the message "Useless use of private variable in void context at script.pl line 6".use warnings; use strict; my @commands = 'print "hello", print "world"'; foreach my $command(@commands) { $command; }
In reply to Interpret array elements as actual Perl? by McMahon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |