in reply to Extracting data from Apache style config files
use strict; my $config = "path_to_your_conf_file"; open(CONFIG, "<$config") or die "Can't open $config\n"; while(<CONFIG>){ if(/(\w+):(\w+)/){ # now do your copy, # there is some work, if these are in different servers. } } close(CONFIG);
|
|---|