Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Wrong content of variable passed to sub

by jwkrahn (Abbot)
on Aug 21, 2013 at 04:53 UTC ( [id://1050279]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my @fields = split(/\|/);
        my $name = $fields[0];
    ...
        my $status = $fields[3];
        $status =~ s/\s*//;
        $status =~ s/\s*$//;
    
  2. or download this
        my ( $name, $value, undef, $status ) = split /\|/;
        s/^\s+//, s/\s+$// for $name, $value, $status;
    

Log In?
Username:
Password:

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

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

    No recent polls found