TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Perlsecret - Perl secret operators and constants

59 pointsby yurifuryalmost 13 years ago

4 comments

pyrealmost 13 years ago
This fails to mention the most useful part of the "baby cart":<p><pre><code> "Greetings @{[ get_planet() ]}lings, we come in peace!" </code></pre> Evaluating functions directly inside of a string. It's sort of alluded to with "@{[ keys %hash ]}", but in doesn't come right out and say it.
评论 #4250596 未加载
JadeNBalmost 13 years ago
Peteris Krumins wrote about some of these operators some years ago: <a href="http://www.catonmat.net/blog/secret-perl-operators" rel="nofollow">http://www.catonmat.net/blog/secret-perl-operators</a>.
nemo1618almost 13 years ago
As someone who loves obfuscated Perl...thanks! These are some great tricks.
评论 #4250647 未加载
snorkelalmost 13 years ago
Part of the reason I've stopped writing Perl apps, the operator noise is getting out of hand.
评论 #4250735 未加载
评论 #4250804 未加载
评论 #4252131 未加载