On Fri, 25 Apr 2014 12:39:21 -0700
John SJ Anderson <geneh...@genehack.org> wrote:

> Perl doesn't charge you by the lines of code you use, so doing this:
> 
>    my $re = shift;
>    $re = qr/$re/;
> 
> is just fine.

This also works:

    my $re = qr/$ARGV[0]/;
    shift @ARGV;


-- 
Don't stop where the ink does.
        Shawn

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to