Hi,
#!/usr/bin/perl -w
my $path = shift;
my $machine = shift;
my (undef,$country,$property) = split ///,$path;
my $xmlData = qx!./pindown.php $machine!;
my
contacts = $xmlData =~ /property name="$property" country="$country">.+?<contact type="admin">.+?</contact>/is;
#print "$&n";
print
contacts;
This prints "1"
But printing $& prints a block of XML.
Why does the array contacts not contain the pattern matched?
Thanks,
Kapil.V
---------------------------------
Yahoo! Answers - Get better answers from someone who knows. Tryit now.
[Non-text portions of this message have been removed]
.