Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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,
rir


Comment on Re^2: Perl oddities
Select or Download Code
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2015-07-29 10:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls