in reply to Newbie Question - arrays
toprint "$array[\"$current\"]";
since you really don't want to be escaping those quotes. Or, tryprint "$array[$current]";
since there's no need to stringify a value that is already a string.print $array[$current];
The longer fix is to find one of the recipes for scanning mailbox files. The Perl Cookbook is an essential reference to have within reach when you're doing tasks like this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Newbie Question - arrays
by mohadib_the_nasty (Initiate) on Jan 13, 2003 at 03:35 UTC |