Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^3: search and print in perl

by citromatik (Curate)
on Jun 01, 2009 at 12:11 UTC ( #767245=note: print w/ replies, xml ) Need Help??

in reply to Re^2: search and print in perl
in thread search and print in perl

it goes on like this, Random ACGT characters for whole 6 lines

If the input is multi-line and you have to match your regexp against the full input (all lines concatenated), then you should strip off the newlines characters of each individual line:

while($line = <IN>) { chomp $line; ## <---- !!! $text .= $line; }


Comment on Re^3: search and print in perl
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2016-02-13 22:35 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (449 votes), past polls