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

Re: Substitute text string in a file with matching text from another file

by jch341277 (Sexton)
on Aug 12, 2005 at 15:46 UTC ( [id://483315]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
            my @l = split /\|/, $l;
            return "$l[0]|$l[1]","$l[2]";
    }
    
  2. or download this
    $ ./join.pl f1 f2
    789|efg|2222222|NO MATCH
    ...
    123|xxx|0000000|NO MATCH
    234|cde|0000000|456
    567|xyz|1111111|999
    

Log In?
Username:
Password:

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

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

    No recent polls found