Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Golf for unique digits

by trizen (Hermit)
on Jan 09, 2013 at 18:28 UTC ( #1012537=note: print w/replies, xml ) Need Help??


in reply to Re: Golf for unique digits
in thread Golf for unique digits

Even shorter: perl -E'say~~grep+2013=~$_,0..9'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1012537]
help
Chatterbox?
[Corion]: Heh. Perl heredocs are nasty - Filter::Simple doesn't know whether the line continued after the heredoc or not. The heredoc payload starts on the next line.
[Corion]: So currently, Filter::Simple mangles your code/line numbers if you use heredocs ;)

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2017-01-22 10:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (187 votes). Check out past polls.