Shawn H Corey <shawnhco...@gmail.com> writes: > 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;
Ah yes, thanks. Dadgumit... and I used that vary formulation the day before... I guess it dropped off my pea brain in 24 hrs... hehe. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/