can't get backreferences to work
- From: everymn@xxxxxxxxx
- Date: Tue, 20 Feb 2007 17:17:22 -0600
Could someone tell me what I'm doing wrong to cause the backreference
variable to fail to be assigned here? It's entering the If block 4
times, so I know it's matching but there's nothing in $1?
Thank You!
#! /usr/bin/perl
use warnings;
use strict;
open FH, 'results.xml' or die "this didn't work: $!";
$/ = "<test-case name=";
while (<FH>)
{
if (/rssupports/)
{
print "DEBUG: \n";
print "$1" if defined $1;
}
}
OUTPUT:
DEBUG:
DEBUG:
DEBUG:
DEBUG:
.
- Follow-Ups:
- Re: can't get backreferences to work
- From: everymn
- Re: can't get backreferences to work
- Prev by Date: attn: kleon - truly surprising fast downloads - hitcu - (1/1)
- Next by Date: Re: can't get backreferences to work
- Previous by thread: attn: kleon - truly surprising fast downloads - hitcu - (1/1)
- Next by thread: Re: can't get backreferences to work
- Index(es):
Relevant Pages
|
|