On Friday, May 30, 2003, at 08:24 AM, Kipp, James wrote:
Next I try to loop through the results and extract parts of each string like so:
$tmp = ""; while (<PROPS>) { $tmp .= s/<photoshop:([^>]+)>([^<]*)/$1: $2/; }
Doing a "print" on $tmp, yeilds
1111111111111
None of the lines in "PROPS" contain a single digit character so why am I getting a string of 1's?
you assigning the return value of the s/// statement to temp. the 1's are
telling you the statement is true.
An earlier poster emailed me directly with the solution s/<photoshop:([^>]+)>([^<]*)/$1: $2/; $tmp .= $_;
Thanks to both of you for responding
Ken
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]