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

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


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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://605452]
[Tux]: And I just tested, neither do other Tk apps :) (95% of my Tk Apps is either just monitoring (no input) or input of just numbers). Something to investigate then
[choroba]: Maybe something like this?
[choroba]: I vaguely remember we had problems with dead keys in Tk at $work - 2, but I forgot all the details
[choroba]: but it was worse on MSWin than on Linux
[choroba]: (and OSX didn't exist yet)
[choroba]: Also, I'd try starting the App with the US layout and switch to the dead keys layout later

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2017-09-25 20:49 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (290 votes). Check out past polls.