in reply to Scalar context changes bareword value?
in thread Stumped when passing barewords
The bareword is the same in scalar context, however the array @_ in scalar context is another matter. @_ itself hasn't changed, but when you pass it to sub2 it's put in scalar context ("*" is behaving similarly to "$" in this case).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Scalar context changes bareword value?
by crenz (Priest) on Apr 22, 2004 at 13:35 UTC | |
by Fletch (Bishop) on Apr 22, 2004 at 13:45 UTC |