in reply to Re: my Scope Pop Quiz
in thread my Scope Pop Quiz
$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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: my Scope Pop Quiz
by ikegami (Patriarch) on Apr 09, 2005 at 05:13 UTC | |
by Tanktalus (Canon) on Apr 09, 2005 at 14:12 UTC | |
by ikegami (Patriarch) on Apr 09, 2005 at 14:26 UTC |