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

Re: FETCHing twice in Tie::FlipFlop

by sauoq (Abbot)
on Dec 20, 2003 at 00:51 UTC ( [id://315965]=note: print w/replies, xml ) Need Help??


in reply to FETCHing twice in Tie::FlipFlop

It isn't the quoting exactly. Removing the newlines in the quoted strings makes it work too.

$ perl -MTie::FlipFlop -le 'tie my $f => Tie::FlipFlop => ("white","bl +ack"); print qq[$f]; print qq[$f]; print qq[$f]; print qq[$f]' white black white black
A little more experimentation shows that it breaks anytime there is a backwhack-escaped character in the string.

It isn't the platform, it's the version. I did my testing with 5.6.1 on Solaris and reproduced your results. This bug appears to be fixed in newer versions (5.8.0) of perl.

-sauoq
"My two cents aren't worth a dime.";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-03-28 13:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found