Hi,
I have a problem trying to assign part of a string to a variable using the
filehandle. For example, if the string was DisplayName =XYZ and I want to
assign XYZ to the variable $mytext in the code below how would I do this. I
am having trouble with the line ($mytext) =(<DATA>)=~ /DisplayName(.*)/; and
I know this is wrong but I can't find any documentation anywhere on how to
do this. Any help would be great!
while(<DATA>){
print if/DisplayName/; # prints the line if it conains 'DisplayName'
if(/DisplayName/){
($mytext) =(<DATA>)=~ /DisplayName(.*)/;
print $mytext;
}
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]