http://www.perlmonks.org?node_id=435505


in reply to Re: Perl oddities
in thread Perl oddities

My vote for weirdest feature of Perl is reset.

dates produced by -M, -C and -A are useful for things like "delete all *.tmp files more than 5 days old" etc.

And for command line utilities you are making your decision at the time of invocation, $^T, so that is the important time. These op's must have been a grand convenience for find2perl. I agree these are a strange and odd convenience feature but given the early mission of Perl to be a better shell/awk/sed I don't find it weird.

Be well,
rir

Replies are listed 'Best First'.
Re^3: Perl oddities
by TimToady (Parson) on Mar 01, 2005 at 18:40 UTC
    reset will be demoted to a method on a package or hash object. It will no longer be a keyword. We can't get rid of the functionality entirely if we want to be able to translate Perl 5 to Perl 6 though. But it can definitely stand to be de-Huffmanized, or more accurately, Huffmanized to be longer. Funny how we associate Huffman with making easy things easier but not harder things harder...