Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Bad line numbers .. bad!

by rjt (Deacon)
on Jul 25, 2013 at 21:08 UTC ( #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
Node Status?
node history
Node Type: note [id://1046425]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2014-09-20 17:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (160 votes), past polls