Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Pattern Match and Replace Problem

by Chady (Priest)
on Apr 27, 2001 at 23:51 UTC ( [id://76247]=note: print w/replies, xml ) Need Help??


in reply to Pattern Match and Replace Problem

Answer to #2:

you already split the individual lines into array fields, so \ns will only be at the end of the lines... you should chomp instead:

$File =~ s/\n//; # removes newline characters. # it should be chomp($File); # removes newline characters from the end of the line fa +ster.


He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-18 06:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found