in reply to Dualvars besides $!
Are there other dualvars in perl core?
$ perl -MScalar::Util=isdual -E' $x=1; say isdual($x)?1:0; "$x"; say isdual($x)?1:0; ' 0 1
The stringification is cached.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dualvars besides $! (boring)
by tye (Sage) on Jan 28, 2014 at 02:16 UTC | |
|
Re^2: Dualvars besides $!
by davido (Cardinal) on Jan 27, 2014 at 21:32 UTC | |
by ikegami (Patriarch) on Jan 31, 2014 at 17:35 UTC | |
|
Re^2: Dualvars besides $!
by Tux (Canon) on Jan 28, 2014 at 11:27 UTC |