On Wed, 2006-21-06 at 11:22 -0600, Don Sutter wrote:
> Hi,
>
> I'm storing an array in a hash as a string using:
>
> $array{$client} = "@field";
>
> and retrieving the array so I can manipulate it with:
>
> @field = &shellwords($array{$client});
>
> This conversion to and fro must be inefficient and time consuming. Is
> there a "better" way to do this?
Use an anonymous array:
$array{$client} = [ @field ];
@field = @{ $array{$client} };
--
__END__
Just my 0.00000002 million dollars worth,
--- Shawn
"For the things we have to learn before we can do them, we learn by doing them."
Aristotle
* Perl tutorials at http://perlmonks.org/?node=Tutorials
* A searchable perldoc is at http://perldoc.perl.org/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>