Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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; }

citromatik

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://767245]
help
Chatterbox?
[LanX]: I have a degree in cynism. ..
LanX is the PROVO-KING
[holli]: what's that smell?
[LanX]: good evening! :)
[Discipulus]: ProvoLanX? grin..
[holli]: wow. the google translation to german is really good

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2017-11-20 19:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (292 votes). Check out past polls.

    Notices?