Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Save all but line 32!

by jmcnamara (Monsignor)
on Sep 19, 2002 at 07:59 UTC ( #199096=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        $ perl -MO=Deparse  -pe '$_=$'
    
        LINE: while (defined($_ = <ARGV>)) {
    ...
        continue {
            die "-p destination: $!\n" unless print $_;
        }
    
  2. or download this
        perl -pe '$.-32or$_=$' file | cat -A
  3. or download this
        $ perl -MO=Deparse  -pe '$_=$.'
    
        LINE: while (defined($_ = <ARGV>)) {
    ...
        continue {
            die "-p destination: $!\n" unless print $_;
        }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2020-10-31 23:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (291 votes). Check out past polls.

    Notices?