Hi. Long time IT pro, first time Perl user.
Trying to perform what I expect to be a straight forward parse of data strings from a file. The file is the output header info for a scanned file that is being picked up by a fax (yes, Fax) server.
The specific lines in question of the file are thus:
1. string ImageFileName = "00000001"; (there are a number of spaces preceeding the word "string")
2. string PhoneNumber = "2251234567"; (again, there are a number of spaces preceeding the word "string")
I wish to assign the value "00000001.tif" to a variable and 2251234567 to another.
I've attempted any number of "$line =~" variations to assign the values to $1 or $2, or any variable name without success.
Thanks.
Trying to perform what I expect to be a straight forward parse of data strings from a file. The file is the output header info for a scanned file that is being picked up by a fax (yes, Fax) server.
The specific lines in question of the file are thus:
1. string ImageFileName = "00000001"; (there are a number of spaces preceeding the word "string")
2. string PhoneNumber = "2251234567"; (again, there are a number of spaces preceeding the word "string")
I wish to assign the value "00000001.tif" to a variable and 2251234567 to another.
I've attempted any number of "$line =~" variations to assign the values to $1 or $2, or any variable name without success.
Thanks.