Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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
Replies are listed 'Best First'.
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 drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2015-11-27 04:33 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (718 votes), past polls