Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Multiple / Mapping Search and Replace

by graff (Chancellor)
on Mar 18, 2009 at 05:22 UTC ( [id://751368]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ( $src, $dst ) = ( $opt_reverse ) ? ( 0, 1 ) : ( 1, 0 );
    
    ...
    } else {
        $map{$array[$dst]} = $array[$src];
    }
    
  2. or download this
    my ( $src, $dst ) = ( $opt_reverse ) ? (0,1) : (1,0);
    my $key = ( $opt_ignore ) ? lc($array[$dst]) : $array[$dst];
    
    $map{$key} = $array[$src];
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-26 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found