Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Legacy use of splice() as lvalue

by nobull (Friar)
on Feb 15, 2008 at 17:29 UTC ( #668195=note: print w/replies, xml ) Need Help??


in reply to Re: Legacy use of splice() as lvalue
in thread Legacy use of splice() as lvalue

Update: another indication that this code has never really been in use is that if the idea is to modify the argument list prior to calling the wrapped do_httpx4, it would have to be called as &do_httpx4 to actually make @_ visible to that subroutine...

Yes, I noticed that initially, then somehow it slipped my mind before I posted.

I'm getting more and more convinced that much of Net::SSLeay is the software equivalent of introns.

Here's another

sub do_httpx4 { my ($page, $response, $headers, $server_cert) = &do_httpx3; X509_free($server_cert) if defined $server_cert; my %hr = (); for my $hh (split /\s?\n/, $headers) { my ($h,$v)=/^(\S+)\:\s*(.*)$/; push @{$hr{uc($h)}}, $v; } return ($page, $response, \%hr); }

If you notice the variable $hh is not used and the m// operator is acting on whatever happens to be in $_.

Am I really looking at the current version of the module (version 1.32 on CPAN)?

Replies are listed 'Best First'.
Re^3: Legacy use of splice() as lvalue
by bart (Canon) on Feb 16, 2008 at 09:18 UTC
    Am I really looking at the current version of the module (version 1.32 on CPAN)?
    Not only that: both code fragments are still, unchanged, in the latest developer release, Net-SSLeay-1.33_01, released 2 days ago.

    Wow. Just wow.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://668195]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2021-04-18 18:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?