Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
joslin01
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
47 ms
·
391.
▲
"Guess the Number" in 63 languages Rosetta Code
(rosettacode.org)
1 points
by
joslin01
15y ago
|
0 comments
392.
▲
Pathologically Polluting Perl
(perl.com)
2 points
by
joslin01
15y ago
|
0 comments
393.
▲
Programming is hard, let's go scripting..
(perl.com)
151 points
by
joslin01
15y ago
|
94 comments
394.
▲
by
joslin01
15y ago
Yea, my $file_handle = open(file.txt) my $text; while (read $file_handle, $buff, 1024) { $text = $buff } read returns the number of characters read (0 when it's finished which will end the loop). I don't know of any generic "read" function
395.
▲
by
joslin01
15y ago
Alternatively, use named captures: > obj = re.match('(?P<id>\d\d)(?P<name>\w+)') > id = obj.group('id') > name = obj.group('name')
396.
▲
Python for Perl programmers
(everythingsysadmin.com)
40 points
by
joslin01
15y ago
|
37 comments
397.
▲
by
joslin01
15y ago
RainyMood -- http://www.rainymood.com/ Electronic techno (The Field), dubstep (Burial), ambient or solo piano (Pandora is good for these) Combining rain with any of those goes very well together actually.