[Israel.pm] One-liner perl question
ynonperek at gmail.com
Sun Sep 9 10:39:30 PDT 2012
I'm trying to turn a short program into a one-liner. The program takes an
argument "n" and prints the first n file names sorted by file name length,
with no duplicates in length.
Here's what I wrote for the original code:
The part I found difficult is to sort a dictionary by its keys, and print
the top n values...
(clarification: this is just for fun, nothing important, and I'm not
interested in string based solutions, already got one on the same gist).
כותב הרצאות ? מדבר מול קהל ? הבלוג שלי לומד
לדבר<http://publicspeakr.blogspot.com/>כתוב במיוחד בשבילך.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Perl