By surrounding it in quotes you are asking for the values to be interpolated into a string separated by $" (default space character). See http://perldoc.perl.org/perldata.html or type "perldoc perldata" for more information.my @list = qw/malay manab milan anand/; my $count1 = scalar @list; # these are my $count2 = @list; # the same
In reply to Re: scalar context confusion
by peterdragon
in thread scalar context confusion
by perlplayer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |