in reply to Is $# still used?
It's documented as deprecated, so it probably is. I've never used it, but a few trials turn up some fishy results:
Yet another solution to the age-old question of how to make perl segfault.$ perl -e'$_=1.657329486;$#="%8d";print,print $/' -330231720 $ perl -e'$_=1.657329486;$#="%05f";print,print $/' 1.657329 $ perl -e'$_=1.657329486;$#="%06f";print,print $/' 1.657329 $ perl -e'$_=1.657329486;$#="%08f";print,print $/' 1.657329 $ perl -e'$_=1.657329486;$#="%s";print,print $/' Segmentation fault (core dumped) $
I haven't seen HOP yet. Is MJD talking about the $#foo construct for the last index of @foo, instead?
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is $# still used?
by jonadab (Parson) on Jun 11, 2005 at 12:40 UTC | |
|
Re^2: Is $# still used?
by ambrus (Abbot) on Jun 11, 2005 at 15:23 UTC |