in reply to Data manipulation confusion
this will get all the WEB*servers into the array @list. enjoy scripting......@webserverlist = qw(server1:NY:3600 webserver1:NY:3600 server2:NY:3600 + server3:NY:3600 webserver4:NY:3600 server4:Boston:3600); foreach (@webserverlist) { if ( $_ =~ m/^web.*/ ) { push (@list, $_."\n" ); } } print @list;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Data manipulation confusion
by ikegami (Patriarch) on Mar 11, 2010 at 05:38 UTC |