Hi Agnello, On Wednesday 20 Apr 2011 13:59:24 Agnello George wrote: > On Wed, Apr 20, 2011 at 4:14 PM, Shlomi Fish <shlo...@iglu.org.il> wrote: > > On Wednesday 20 Apr 2011 12:50:45 Agnello George wrote: > > > > You can remove the ./: > > > > [CODE] > > foreach my $filename (@all) > > { > > my $fn_wo_prefix = $filename; > > $fn_wo_prefix =~ s{\A\./}{}; > > > > if (exists($selectfiles{$fn_wo_prefix})) > > { > > push @final_files, $filename; > > } > > } > > [/CODE] > > in what you mentioned what does \A stand for ?? > > $fn_wo_prefix =~ s{\A\./}{};
\A stands for the beginning of the string: http://perldoc.perl.org/perlreref.html : "\A Match string start (regardless of /m)" See the links on: http://perl-begin.org/topics/regular-expressions/ Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ My Public Domain Photos - http://www.flickr.com/photos/shlomif/ Chuck Norris doesn't make mistakes. (Su-Shee) He corrects God. (Shlomi Fish) Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/