$rv is clearly undefined. An undefined value is represented by an empty string when printed (whether it is in an interpolated string or not).
#!/usr/bin/perl use strict; my $rv = 42 for (1); print "rv unquoted: '", $rv, "'\n"; print "rv quoted: '$rv'\n";
In reply to Re^2: my Scope Pop Quiz
by Mr. Muskrat
in thread my Scope Pop Quiz
by saintmike
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |