I'm trying to understand Perl context and I tripped over a rock;
Given the code;
#!/usr/bin/perl
my $b = (33,22,11);
print "$b\n";
my $b = () = (33,22,11);
print "$b\n";
my @b = (33,22,11);
print "@b\n";
my @b = () = (33,22,11);
print "@b\n";
The results are (the last line is blank);
11
3
33 22 11
<>
Since the 2nd print returned the length of the list I was assuming that somewhere an array was generated since an array in a scalar context evaluates to its length. But the 4th print seems to belie that assumption. I was expecting to see '33 22 11'
printed but got nothing instead. What's happening here?