Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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 $~.



Comment on Re^2: Placement of $~ or $FORMAT_NAME
Select or Download Code
Re^3: Placement of $~ or $FORMAT_NAME
by Tux (Monsignor) 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?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2014-07-26 06:10 GMT
Find Nodes?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:

    Results (175 votes), past polls