in reply to Re^3: reset function (never)
in thread reset function
Can someone provide a use-case for this that makes sense?
I thought surely the use case is perl4, but it wasn't available in perl4, it became available in perl5, and looks to be http://perldoc.perl.org/perlapi.html#sv_reset exposed
It is barely used (one place) http://perl5.git.perl.org/perl.git?a=search&h=HEAD&st=grep&s=sv_reset
I guess, larry thought, it may be useful for Perl ... but it turned out to not be useful for Perl, and its kind of deprecated :)
Maybe the thinking was where local $foo_one, $foo_bar,...; can get tedious, reset 'f'; saves typing,
anyway, reset simply appeared from larry with perl5a2 20 years ago
For comparison of old cruft in perl see Re^2: Perl format line breaking, $FORMAT_LINE_BREAK_CHARACTERS apparently ignored
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: reset function (not perl4)
by dave_the_m (Monsignor) on Nov 21, 2013 at 09:08 UTC |