Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
XP is just a number
 
PerlMonks  

Re: Will the range operator help you?

by juo (Curate)
on Sep 19, 2001 at 14:57 UTC ( [id://113357]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Will the range operator help you?
in thread How to remove lines out of an ascii file

This works fine but I don't want to include my matching line into the skip. Is this possible.

Replies are listed 'Best First'.
Re: Re: Will the range operator help you?
by broquaint (Abbot) on Sep 19, 2001 at 15:33 UTC
    Sure if you just do something like this -
    while(<FILE>) { next unless /^CPN/ .. eof() and !/^CPN/; [munge data here] }
    HTH

    broquaint

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://113357]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.