Perl text parse help (noob)
Hi,
Just beginning perl and wanting to a perl script to do 2 things:
First Pull a text file off a web site such as URL.com/sample.txt
Then Text Parse the txt file to get figures for each line.
The text file looks like this:
username=DP
data_down=8579.81 MB
data_up=3894.36 MB
free_data_down=22177.53 MB
free_data_up=8311.49 MB
I wanted to be able to return just the number for the query on each line. So If I ran the script "script.pl data_down" I would get just the figure 8579.81 printed.
If possible can someone recommend or help me with some samples to achieve this with perl?
|