Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Small question: Why can't I print "@-"?

by converter (Priest)
on Sep 23, 2003 at 19:33 UTC ( #293645=note: print w/ replies, xml ) Need Help??


in reply to Small question: Why can't I print "@-"?

If your code executes print "@-"; and the output is @-, then your perl is probaby version 5.005_03 or older. @- and @+ aren't supported until perl version 5.6, if I remember correctly.

converter

Updated: Interpolation of @- and @+ seems to be broken until version 5.008.


Comment on Re: Small question: Why can't I print "@-"?
Select or Download Code
Re: Re: Small question: Why can't I print "@-"?
by bart (Canon) on Sep 23, 2003 at 19:46 UTC
    No, I still see "@-", perl version = 5.6.1.

      You're right, my mistake. I tested with perl 5.8 and 5.00503, but not 5.6 or 5.6.1. Evidently 5.8 recognizes @- as an array without disambiguation via @{-} where versions up to at least 5.6.1 do not.

      converter

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2015-07-01 16:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (9 votes), past polls