iana has asked for the wisdom of the Perl Monks concerning the following question:
i'm getting problems poping the arrays.push @filter, [("EventLog", "started", "The EventLog has been Started +")]; push @filter, [("EventLog", "stopped", "The EventLog has been Stopped" +)];
The only thing that works is:@singlefilter = pop(@filter)
I don't understand though why I can't just use:$logtype = {@singlefilter[0]}[0]; $Regex_Event = {@singlefilter[0]}[1]; $Friendly_Output = {@singlefilter[0]}[2];
etc.. Can anyone enlighten me?$logtype=@singlefilter[0];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Popping Arrays from an Arrays of Arrays
by Limbic~Region (Chancellor) on Mar 30, 2004 at 15:05 UTC | |
|
Re: Popping Arrays from an Arrays of Arrays
by Tomte (Priest) on Mar 30, 2004 at 15:07 UTC | |
|
Re: Popping Arrays from an Arrays of Arrays
by Roy Johnson (Monsignor) on Mar 30, 2004 at 15:18 UTC | |
|
Re: Popping Arrays from an Arrays of Arrays
by iana (Initiate) on Mar 30, 2004 at 16:30 UTC |