Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^2: Perl oddities

by rir (Vicar)
on Mar 01, 2005 at 16:17 UTC ( #435505=note: print w/replies, xml ) Need Help??

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,

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...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2019-12-07 23:49 GMT
Find Nodes?
    Voting Booth?
    Strict and warnings: which comes first?

    Results (162 votes). Check out past polls.