Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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


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?
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 browsing the Monastery: (11)
As of 2014-12-25 05:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (159 votes), past polls