Another way to prove that, what you see inside the sub through @_ is the same variables you see outside the sub:
use strict; use warnings; my $a; print \$a, "\n"; somesub($a); sub somesub { print \$_[0]; }
This gives:
SCALAR(0x182419c) SCALAR(0x182419c)
In reply to Re: lhs substr(): refs vs. scalars
by pg
in thread lhs substr(): refs vs. scalars
by renodino
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |