Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Regular expressions across multiple lines

by afoken (Canon)
on Apr 24, 2016 at 19:04 UTC ( #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
Node Status?
node history
Node Type: note [id://1161388]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2020-09-28 22:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (144 votes). Check out past polls.

    Notices?