Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Remove '$' from system names

by andye (Curate)
on Mar 19, 2007 at 10:41 UTC ( #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
Node Status?
node history
Node Type: note [id://605452]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2018-07-21 08:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (445 votes). Check out past polls.

    Notices?