News for hackers. Stuff that matters.
Re:Overriding the Backtick in Ruby by draegtun on Monday December 20, 2010 @01:40PM (#2025271)
This related URLs in Ruby HN post maybe of interest: http://news.ycombinator.com/item?id=994716

This inspired me at the time to write PerlX::QuoteOperator (http://search.cpan.org/dist/PerlX-QuoteOperator/) which allows you to create new custom quote-like operators (http://perldoc.perl.org/perlop.html#Quote-Like-Operators).

So for example to create a URI quote-like operator called u:

    use PerlX::QuoteOperator u => {
        -emulate => 'q', 
        -with    => sub ($) {
            require URI;
            URI->new( $_[0] );
        }, 
    };
    
    my $uri = u(http://google.com);
Re:Overriding the Backtick in Ruby by avdi on Monday December 20, 2010 @04:37PM (#2025865)
Oh, Perl. Sometimes I honestly do miss you.