Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by nobull (Friar)
on Feb 15, 2008 at 17:29 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://668195]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-03-29 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found