Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: Regular expressions across multiple lines

by afoken (Chancellor)
on Apr 24, 2016 at 19:04 UTC ( [id://1161388]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    /tmp/demo>file *.txt
    linux-file.txt:   ASCII text
    ...
            ];
    
    /tmp/demo>
    
  2. or download this
    H:\tmp\demo>perl -MWin32::autoglob -MData::Dumper -E "$Data::Dumper::U
    +seqq=1; for $fn (@ARGV) { open $f,'<',$fn or die; @lines=<$f>; chomp 
    +@lines; say qq<$fn:>; say Dumper(\@lines); }" *.txt
    linux-file.txt:
    ...
    
    
    H:\tmp\demo>
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-29 09:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found