Doubt on Pattern Matching

2007-08-27 Thread Dharshana Eswaran
Hi All, I have a pattern, which reads as shown below: my $comment= qr{\s* (?:/\* .*? \*/ \s*)*}xs; my $identifier = qr{ [A-Za-z_]\w* }xs; my $statement = qr{ \s* ($identifier) \s+ ($identifier) \s*

Re: Doubt on Pattern Matching

2007-08-27 Thread Chas Owens
On 8/28/07, Dharshana Eswaran <[EMAIL PROTECTED]> wrote: > Hi All, > > I have a pattern, which reads as shown below: > > my $comment= qr{\s* (?:/\* .*? \*/ \s*)*}xs; > my $identifier = qr{ [A-Za-z_]\w* }xs; > my $statement = qr{ >\s* >($identifier) >

Re: Doubt on Pattern Matching

2007-08-27 Thread Dharshana Eswaran
When i write the condition my @m = $fullStruct =~ /$DLstatement/g; and try printing the array, print "\nThe array is @m\n"; It prints nothing This is the problem... Thanks and Regards, Dharshana On 8/28/07, Chas Owens <[EMAIL PROTECTED]> wrote: > > On 8/28/07, Dharshana Eswaran <[E

Re: Doubt on Pattern Matching

2007-08-28 Thread Chas Owens
On 8/28/07, Dharshana Eswaran <[EMAIL PROTECTED]> wrote: > When i write the condition > my @m = $fullStruct =~ /$DLstatement/g; > and try printing the array, > print "\nThe array is @m\n"; > It prints nothing This is the problem... > > Thanks and Regards, > Dharshana snip > > That i

Re: Doubt on Pattern Matching

2007-08-28 Thread Rob Dixon
Dharshana Eswaran wrote: On 8/28/07, Chas Owens <[EMAIL PROTECTED]> wrote: On 8/28/07, Dharshana Eswaran <[EMAIL PROTECTED]> wrote: I have a pattern, which reads as shown below: my $comment= qr{\s* (?:/\* .*? \*/ \s*)*}xs; my $identifier = qr{ [A-Za-z_]\w* }xs; my $statement = qr{

Re: Doubt on Pattern Matching

2007-08-28 Thread Dharshana Eswaran
On 8/28/07, Chas Owens <[EMAIL PROTECTED]> wrote: > > On 8/28/07, Dharshana Eswaran <[EMAIL PROTECTED]> wrote: > > When i write the condition > > my @m = $fullStruct =~ /$DLstatement/g; > > and try printing the array, > > print "\nThe array is @m\n"; > > It prints nothing This is th