Try this,
undef $/; $k=<DATA>; while ($k=~/<Directory Filename="([^"]+)"/g) { $value=$1; print $value; } __DATA__ <Directory Filename="hai" Version="1.9"> <Directory Filename="dai" Version="1.9">
In reply to Re: search file for text then only use some of the text in the line
by murugu
in thread search file for text then only use some of the text in the line
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |