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

Re: Perl: how to insert words at the end of each line and open the file?

by Laurent_R (Prior)
on Oct 31, 2013 at 18:20 UTC ( #1060618=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (@arr2 = <CF>){
    
    foreach $line (@arr2) {
    
  2. or download this
    my @arr2 = <CF>;
    foreach $line (@arr2) {
    # ...
    
  3. or download this
    while (my $line = <CF>) {
    # ...
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (12)
As of 2015-07-04 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (58 votes), past polls