Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Applying regex to each line in a record.

by haukex (Bishop)
on Oct 25, 2020 at 10:45 UTC ( #11123145=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    local $/ = "";
    while (my @records = <$fh>) {
        foreach my $line (@records) {
    
  2. or download this
    local $/ = "";
    while (my $paragraph = <$fh>) {
    ...
            print "<$line>\n";
        }
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2021-04-18 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?