nobull has asked for the wisdom of the Perl Monks concerning the following question:
I came across the following code in Net::SSLeay:
sub do_https4 { splice(@_,1,0) = 1; do_httpx4; } # Legacy undocumente +d
The trouble is that this code doesn't actually compile. I'm guessing this doesn't matter (at least on some level) because the module uses AutoLoader so the above code doesn't get compiled unless someone calls do_https4.
However in order to debug Net::SSLeay I've temporarily prevented it from auto-splitting so I've had to remove the bogus code.
What I'm curious about is what the code is supposed to do! Is it a fact that in some previous version of Perl this code behaved like:
sub do_https4 { splice(@_,1,0,1); do_httpx4; }
And if so when did this change?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Legacy use of splice() as lvalue
by moritz (Cardinal) on Feb 15, 2008 at 09:57 UTC | |
Re: Legacy use of splice() as lvalue
by almut (Canon) on Feb 15, 2008 at 10:22 UTC | |
by nobull (Friar) on Feb 15, 2008 at 17:29 UTC | |
by bart (Canon) on Feb 16, 2008 at 09:18 UTC |
Back to
Seekers of Perl Wisdom