Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Bad line numbers .. bad!

by rjt (Curate)
on Jul 25, 2013 at 21:08 UTC ( [id://1046425]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use 5.010;
    use warnings;
    use autodie;
    ...
        
        select STDOUT;
    }
    
  2. or download this
    use File::Slurp;
     
    $_ = read_file($ARGV[0] // $0);
    ...
    s/\x0d/<CR>/g, s/\x0a/<LF>/g;
    s/((?:<CR>)?<LF>)/$1\n/g; # Add real line breaks
    say;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-20 03:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found