Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
draegtun
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
81 ms
·
691.
▲
Rakudo Star 2012.02 out – and the focus for 2012.03 (Perl6)
(6guts.wordpress.com)
19 points
by
draegtun
15y ago
|
1 comments
692.
▲
by
draegtun
15y ago
Ditto for Perl. And with modern Perl(s) this can be switched on with new language features using... use 5.010; # or 5.012 or 5.014 and soon 5.016
693.
▲
by
draegtun
15y ago
Yes Ruby follows the Perl tradition of camelCase for Module::OrClassNames and instead using underscore in variable_names . Interesting Perl6 introduces option of hypenated $variable-names ala Lisp. Damian Conway gave this great commen
694.
▲
by
draegtun
15y ago
Bit like Black Perl written (supposedly!) by Larry Wall - http://en.wikipedia.org/wiki/Black_Perl Perlmonks has a list of Perl Poetry ( http://www.perlmonks.org/?node=Perl%20Poetry ). Also on Perlmonks there is a perl5 update of Black
695.
▲
by
draegtun
15y ago
> Most languages cannot serialize a closure, though. Lisp is pretty unique there Perl can also serialise closures using the Data::Dump::Streamer module - https://metacpan.org/module/Data::Dump::Streamer
696.
▲
by
draegtun
15y ago
From Perl 5.10 you can extend the RE engine. One example of this is Regexp::Grammars ( https://metacpan.org/module/Regexp::Grammars ) which implements a complete recursive descent parser.
697.
▲
Proud to have published technical books that still deliver value after 20+ years
(plus.google.com)
3 points
by
draegtun
15y ago
|
0 comments
698.
▲
by
draegtun
15y ago
Their certainly regarded as probably being one of the busiest Catalyst sites and they were employing Perl/Catalyst developers back in 2009: http://news.ycombinator.com/item?id=565152 NB: The HN article link hits an expired job post. He
699.
▲
by
draegtun
15y ago
> I have to add "my" to a variable to get reasonably-sane scoping, the default is that everything's global To be precise if strict is not enabled then any variable declared without a "my" becomes a package variable. With use strict
700.
▲
by
draegtun
15y ago
>> And of course this does not support installing Python, Ruby, Perl on any other software that has its own way of distributing software. > which is bullshit (although there's no Perl) Last time i looked Perl could be instal
701.
▲
by
draegtun
15y ago
PDL should be able to outperform every other vector language on the market Interesting comment from this thread on Reddit: http://www.reddit.com/r/programming/comments/pkogh/perl_data...
702.
▲
by
draegtun
15y ago
re: Unfortunately Manfred Von Thun has stopped developing Joy and recommends using Factor - http://tech.groups.yahoo.com/group/concatenative/message/487...
703.
▲
by
draegtun
15y ago
Here is the announcement of this 2.4.10 release and also the PDL book from the mailing list: http://mailman.jach.hawaii.edu/pipermail/perldl/2012-Februar... Also here is the link to the PDL book (PDF): http://sourceforge.net/projects/pdl
704.
▲
by
draegtun
15y ago
Also see heroku-buildpack-perl: https://github.com/miyagawa/heroku-buildpack-perl This is a Heroku buildpack that runs any PSGI based web applications using Starman
705.
▲
by
draegtun
15y ago
In the Market Research industry (here) this is still pretty much the de-facto standard for sending digital data between agencies! This continues to remain unchanged by time because the leading Market Research tool [1] still prefers to use
706.
▲
by
draegtun
15y ago
>> All frameworks (ish) play nicely with Plack, which is a straight rip-off of Rack When developing PSGI/Plack, Miyagawa not only looked at Rack but also WSGI (Python) and also the proposed improvements to WSGI. ref: http://bulk
707.
▲
by
draegtun
15y ago
There is a list of web frameworks on the Perl5 wiki: http://www.perlfoundation.org/perl5/web_frameworks However it needs a little updating because both Dancer & Mojolicious would now come under the Popular Frameworks . Also see P
708.
▲
by
draegtun
15y ago
>> ... recall playing with punch cards in the 1960s ... And I recall still using/seeing them in the early 1980s here in UK! They were still heavily used at that time in the Market Research industry for recording data entry (of sur
709.
▲
闇のEメール伝説 (Email Hates the Living) [Video YAPC::Asia 2011]
(youtube.com)
1 points
by
draegtun
15y ago
|
0 comments
710.
▲
by
draegtun
15y ago
And for just email address checking then even better IMHO is: use Email::Valid; if (Email::Valid->address('john.smith@gmail.com')) { print "E-mail is valid\n"; } else { print "Email is invalid\n" } ref: https://metacp
711.
▲
London Perl Workshop 2011 Survey Results
(yapc-surveys.org)
2 points
by
draegtun
15y ago
|
0 comments
712.
▲
by
draegtun
15y ago
!!! Supplementary for future readers of this comment thread !!! The pragma autodie also spots this problem! So.... use strict; use warnings; use autodie; our $config; $config->{file_paht} = "somefile"; open
713.
▲
by
draegtun
15y ago
Previous HN discussion: http://news.ycombinator.com/item?id=3215210
714.
▲
by
draegtun
15y ago
re: Path::Class - Each to their own :) However you can take your original full example of this: open (my $fh, "<", $config->{file_path}) or die "can't open $config->{file_path}: $!"; my $data; { local $/ = un
715.
▲
by
draegtun
15y ago
Me to, especially as it covers both problems you've given in the post. Now I just need to get into the habit of using Hash::Util::lock_keys more often myself :)
716.
▲
by
draegtun
15y ago
Another solution could be to lock the keys of $config after its been configured : use Hash::Util 'lock_keys'; our $config; $config->{file_paht} = "/opt/app/data_file"; lock_keys( %$config ); Now any attempt to use an unde
717.
▲
by
draegtun
15y ago
re: open() creating temporary file if file arg is undef Fortunately both IO::File (core module) & Path::Class don't do this: use IO::File; my $fh = IO::File->new( $config->{file_path}, 'r' ) or die "can't o
718.
▲
Rakudo Star 2012.01 released (Perl 6 - New Object Model branch)
(rakudo.org)
3 points
by
draegtun
15y ago
|
0 comments
719.
▲
by
draegtun
15y ago
I believe the original plan was that you could run perl5 & perl6 together like so... use v6; .say for 1..10; { use v5; say for 1..10; } # back to perl6 That might (still) be a pipedream however o
720.
▲
by
draegtun
15y ago
It's great to know something good came out of that discussion despite the silly trolling that blemished parts of it.
More ›