Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Need a little help appending lines

by johngg (Canon)
on Sep 11, 2007 at 21:31 UTC ( [id://638439]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ cat spw638403.txt
    aajkaj  XYZtcpHJHKtcpKJHKH
    ...
    Address2=
    Address3=
    $
    
  2. or download this
    #!/usr/bin/perl -i.bak
    #
    ...
        s{$}{$list[$. - 1]};
        print;
    }
    
  3. or download this
    $ ./spw638403 spw638403.addr
    $ cat spw638403.addr
    ...
    Address2=JKHKJH
    Address3=NHY
    $
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-06-17 00:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.