Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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 chilling in the Monastery: (6)
As of 2016-02-07 09:21 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (250 votes), past polls