Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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
Domain Nodelet?
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 contemplating the Monastery: (2)
As of 2022-05-27 22:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (98 votes). Check out past polls.

    Notices?