Oh, yes! I see. I went through the codes several times but did not pick that
mistake for some reason. 
Perhaps I was working too late in the night :-)

This works: $received_arg = shift;

Thanks

=> -----Original Message-----
=> From: Uri Guttman [mailto:u...@stemsystems.com]
=> Sent: 20 July 2010 04:44
=> To: Mimi Cafe
=> Cc: 'Perl Beginners'
=> Subject: Re: Can't use string 1 as HASH ref while strict refs in use
=> 
=> >>>>> "MC" == Mimi Cafe <mimic...@googlemail.com> writes:
=> 
=>   MC>     $received_arg = @_;
=> 
=> read perldoc perldata and see what happens when you assign an array to
=> a
=> scalar. you don't get what you think you are getting. context is VERY
=> important to learn in perl and this is a critical context situation
=> that
=> is very common. i won't give you the answer since reading about it
=> will
=> strengthten your learning about this.
=> 
=> uri
=> 
=> --
=> Uri Guttman  ------  u...@stemsystems.com  --------
=> http://www.sysarch.com --
=> -----  Perl Code Review , Architecture, Development, Training, Support
=> ------
=> ---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com --
=> -------


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to