Jeff Pang wrote:
>> If I have 'my $aryRef = [EMAIL PROTECTED]' can do 'push $aryRef, $aValue'?  
>> Does this
>> place the value of $aValue directly into @array or do I need to figure out
>> another way to do that?
>>
> 
> You can't do 'push' like this way since $aryRef is a scalar but 'push' expect
> a list as its first argument.
  ^^^^^^
It won't work with a list (or a scalar or a hash or a filehandle, etc.), only
with an array.

perldoc -q "What is the difference between a list and an array"



John
-- 
Perl isn't a toolbox, but a small machine shop where you can special-order
certain sorts of tools at low cost and in short order.       -- Larry Wall

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to