Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Help with regex

by mr_mischief (Monsignor)
on Sep 28, 2007 at 17:45 UTC ( [id://641583]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach $line ( @fileData ) {
        $linenumber++;
    ...
            print "$linenumber\n";
        }
    }
    
  2. or download this
    for ( @fileData ) {
        $linenumber++;
    ...
            print "$linenumber\n";
        }
    }
    
  3. or download this
    $l++,/^1$/&&print$l.$/for@f;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-24 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found