Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Placement of $~ or $FORMAT_NAME

by loris (Hermit)
on May 13, 2011 at 13:08 UTC ( #904662=note: print w/replies, xml ) Need Help??


in reply to Re: Placement of $~ or $FORMAT_NAME
in thread Placement of $~ or $FORMAT_NAME

Ah, so $~ isn't set for whichever filehandle is current, but just for the one that is current at the moment. If I change the filehandle with select() I also have to reset $~.

Thanks,

loris

Replies are listed 'Best First'.
Re^3: Placement of $~ or $FORMAT_NAME
by Tux (Abbot) on May 13, 2011 at 13:23 UTC

    Take care when switching: also $: and $^A can be affected and $%, $=, $-, and $^ will change on a select. The values might not always be reliable :) YMMV


    Enjoy, Have FUN! H.Merijn

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2016-10-01 23:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (9 votes). Check out past polls.