Sombody help me if i give ([a-z]+)(.*)([a-z]+) as input string output i get
is

$1 is 'silly'
$2 is 'silly'
$3 is 'silly'

this is wrong  according to be book i refer
please somone clarify me code i used is as below

This is correct. first word that matches  ([a-z]+) is 'silly'.


print "\$1 is '$1'\n" if defined $1;
print "\$2 is '$1'\n" if defined $2;
print "\$3 is '$1'\n" if defined $3;
print "\$4 is '$1'\n" if defined $4;
print "\$5 is '$1'\n" if defined $5;

maybe you ment somthing like this:

print "\$1 is '$1'\n" if defined $1;
print "\$2 is '$2'\n" if defined $2;
print "\$3 is '$3'\n" if defined $3;
print "\$4 is '$4'\n" if defined $4;
print "\$5 is '$5'\n" if defined $5;

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to