jcpunk has asked for the wisdom of the Perl Monks concerning the following question:
This code will hopefully help demonstrate what I mean.
my @message_type=('error','alert','warning'); my ($error,$alert,$warning); my $messages_log='/var/log/messages'; foreach (@message_type) { $($_)=`cat $messages_log |grep $_ | wc -l`; chomp($($_)); $($_)=~s/ //g; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Not exactly Dereferencing... but in that ball park
by gaal (Parson) on Nov 19, 2005 at 15:15 UTC | |
by Roy Johnson (Monsignor) on Nov 19, 2005 at 21:27 UTC | |
by gaal (Parson) on Nov 19, 2005 at 21:53 UTC | |
by Tanktalus (Canon) on Nov 20, 2005 at 01:07 UTC | |
by gaal (Parson) on Nov 20, 2005 at 05:50 UTC | |
|
Re: Not exactly Dereferencing... but in that ball park
by davis (Vicar) on Nov 19, 2005 at 15:17 UTC | |
|
Re: Not exactly Dereferencing... but in that ball park
by ioannis (Abbot) on Nov 19, 2005 at 20:07 UTC |