|The stupid question is the question not asked|
Re: One of these things is not like the others...by 2teez (Curate)
|on Oct 22, 2013 at 18:42 UTC||Need Help??|
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