Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: Yet another one-liner

by fundflow (Chaplain)
on Jan 12, 2001 at 00:58 UTC ( [id://51206]=note: print w/replies, xml ) Need Help??


in reply to Re: Yet another one-liner
in thread Yet another one-liner

this doesn't work as $. isn't reset after each file:
perl -pe 'print "$. "' file1 file2 1 2 1 3 2 4 3 5 1 6 2 7 3 [
Is this a bug? I'm using v. 5.6.0

Replies are listed 'Best First'.
(tye)Re: Yet another one-liner
by tye (Sage) on Jan 12, 2001 at 01:03 UTC

    That is why you need the explicit close that the original poster included. Good catch!

            - tye (but my friends call me "Tye")

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (None)
    As of 2024-04-19 00:12 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found