my brain this morning is blocked on this one

I have a file something like

cpu01  value value value
cpu02  value value value
cpu03  value value value
...
cpu01  value value value
cpu02  value value value
cpu03  value value value
...
cpu01  value value value
cpu02  value value value
cpu03  value value value
...

in this example column 1 can be cpu\d+ and cpu_all other it can be even eth0, 
fcs0 etc

I want to open files for writing, one for each unique value in the first column,
so that if the value of the data in the first column is "cpu01" then
write to the file with the FH in the variable $cpu01 or if the value is 
"cpu_all" write to the
file with the FH assigned to the the vaule $cpu_all

This has to be simple ...
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to