On 8 May 2010 13:35, Harry Putnam <rea...@newsguy.com> wrote: > I'm curious about one thing I see there: > > `/\A\d+\z/ ' as opposed to `/^\d+$/' > > in this snippet: > > if ( $chosen =~ /\A\d+\z/ && $chosen >= 1 && $chosen <= @h ) { > print "Taking some action on $h[$chosen - 1]\n"; > last; > } > [...] > > Is the second formulation (`/^\d+$/' - the one I used) likely to miss under > certain conditions?
It's all in perldoc perlre. Phil -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/