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

Re: One of these things is not like the others...

by 2teez (Priest)
on Oct 22, 2013 at 18:42 UTC ( #1059248=note: print w/ replies, xml ) Need Help??


in reply to One of these things is not like the others...

Hi writch,
The "broken" code is running fine on half a dozen machines w/o so much as a burp. Any ideas what might have changed to make this dev box notice it?
Are all your machine running the same version of Perl?
Check the push you probably get the reason for this as:

Starting with Perl 5.14, push can take a scalar EXPR, which must hold a reference to an unblessed array. The argument will be dereferenced automatically. This aspect of push is considered highly experimental. The exact behaviour may change in a future version of Perl.
Thus the following advise was given:
To avoid confusing would-be users of your code who are running earlier versions of Perl with mysterious syntax errors, put this sort of thing at the top of your file to signal that your code will work only on Perls of a recent vintage: use 5.014; # so push/pop/etc work on scalars (experimental)
#Update:
Other monks were faster than I.....Ah!

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me


Comment on Re: One of these things is not like the others...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2014-08-23 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (172 votes), past polls