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);
In reply to Re: Extracting data from Apache style config files
by johnnywang
in thread Extracting data from Apache style config files
by wayloud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |