Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Remove '$' from system names

by andye (Curate)
on Mar 19, 2007 at 10:41 UTC ( [id://605452]=note: print w/replies, xml ) Need Help??


in reply to Remove '$' from system names

srlowry, if you're confident that every line will have an unwanted character appended to the end of it, you can simply chop it off.

HTH, andye

update:

Looking at your code, it looks like you're using map in a way that's a little unusual. Instead of doing this:

map {print "$_\n"} @List; map {print FILE "$_"."\n"} @List;

you might want to consider using foreach instead of map:

foreach (@List) { chop; print "$_ \n"; print FILE "$_ \n"; }

best, andye

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-03-29 14:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found