>how do I find the line with only the "<" character?
%perldoc perlre
In the meantime, you could set the record separator to <, that is,
$/ = '<';
then make a regex that captures the filename part separate from the rest.
if (/^(filenamepattern)(.*)</) {
$key = $1;
$value = $2;
$value =~ s/\n//; #or chomp $value, depends what you want
$hash{$key} = $value;
}
I'm getting afraid of trying to answer queries on this list since it shows me
just how much I don't understand. =) But anyways, that's my untested stab at
the problem.
cheers,
nathanael
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]