Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: binmode and one-liners

by shmem (Chancellor)
on Jun 30, 2007 at 09:36 UTC ( [id://624184]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    qwurx [shmem] ~ > echo foo > foo; echo bar >> foo;
    qwurx [shmem] ~ > perl -ple 'BEGIN { close ARGV } print' foo
    foo
    bar
    
  2. or download this
    perl -ple 'BEGIN{close ARGV; binmode ARGV} s/foo/bar'
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-04-25 10:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found