hi
im trying to make a script to read a textfile with the following format:"
TITLE
Welcome to Carcinoma in Situ
"
i want my script to recognice the TITLE tag and save the following line(s) in $TITLE:
heres what i have done:
while (<>) {
chomp;
if (/TITLE\s*([A-Za-z]+)/) {
$TITLE=$1;
}
}
print $TITLE;
upon script textfile.txt > outputfile i get this error:
Use of uninitialized value in concatenation (.) or string in line (the one with print
$TITLE in it)
i think my regex is not doing what i want it to do??? why?
:/
martin
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]