Front page | perl.perl5.porters |
Postings from October 2009
Re: do SUBROUTINE(LIST)
Thread Previous
|
Thread Next
From:
Eirik Berg Hanssen
Date:
October 28, 2009 01:43
Subject:
Re: do SUBROUTINE(LIST)
Message ID:
7x8wevlxhj.fsf@blackbox.eirik.dav
George Greer <perl@greerga.m-l.org> writes:
> A few weeks ago I made a patch to add a deprecation warning to Perl
> 4's apostrophe package separator but even I don't care to remove "do
> SUB", which is really hard to accidentally trip on and do something
> you didn't want.
Well, I know I managed to. Sure surprised me when I first found out
that do foo(bar) was not do FILE ...
(... unless foo was a built-in, like lc, in which case it was ...)
Then again, the warning helped me figure out why my FILE wasn't
done, so I was in no danger of wasting an afternoon debugging it.
Just commenting on the "really hard", here. ;-)
(Besides, elsewhere in this thread a better reason for deprecating do
SUB has been given.)
Eirik
--
~# su doku
Unknown id: doku
~#
Thread Previous
|
Thread Next