last|perl -pe '$_ x=/(..:..)...(.*)/&&$1ge$1&&$1lt$2' That's gonna be tough for Randal to beat... :-)
About this quote
- What does it mean?
- A complex Perl one-liner is challenging to outdo, especially for a rival.
- In plain terms
- That Perl one-liner is hard to beat.
- What can you take from it?
- Complex one-liners showcase Perl's power.
Where it applies
Putting it to work
Questions to consider
- What makes a one-liner elegant?
- When is readability more important than cleverness?
Another view
Obscure one-liners can be hard to maintain.
More from Larry Wall
Just don't create a file called -rf. :-)
Permalink to quote #37 No, I'm not going to explain it. If you can't figure it out, you didn't want to know anyway... :-)
Permalink to quote #39 I won't mention any names, because I don't want to get sun4's into trouble... :-)
Permalink to quote #36
Related quotes
Although the Perl Slogan is There's More Than One Way to Do It, I hesitate to make 10 ways to do something. :-)
Larry WallLarry Wall quote #1 And don't tell me there isn't one bit of difference between null and space, because that's exactly how much difference there is. :-)
Larry WallLarry Wall quote #2 'Undertaker, do you think you impress The Rock by coming out here with your little Undertaker symbol and claim to steal the souls of all those jabronis? Do you…
The RockThe Rock quote #8