On Mon, Feb 13, 2012 at 9:48 PM, lina <lina.lastn...@gmail.com> wrote:
> $mystring3="abacadeusagaka35";
>
> if($mystring =~ m/(a.+)/g){

Here supposed to be
if($mystring3 =~ m/(a.)+/)
>        print $1,"\n";
showed "ad" only

@myarray=($mystring3 =~ m/(a.)+/);
print @myarray,"\n";

also showed "ad" only,

thanks,


> }
>
> Hi, I wonder how to print the "abacad" out?
>
> Thanks for any suggestions,
>
> Best regards,

--
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