Hi

Can someone help me out with a simple question?

I need to match some parts if a document. and store it in variables so
I can send the matching string into more than one new file.

RegExp

--------------------

while (<>) {
$pub =~ if (/<pub>/i .. /<\/pub>/i )       # or is it better with an
array or hash?
}
open (DOC, ">$newfile" or die$!;
print DOC $pub;
close (DOC) or die $!;

open (FILE, ">$new" or die $!;
print FILE $pub;
close (FILE);
----------------------

I can't get it to work.
Am I on the trail or have I just lost it :)





Reply via email to