Re: Can't use string 1 as HASH ref while strict refs in use

2010-07-20 Thread Uri Guttman
> "D" == Dermot writes: D> I hope Uri will forgive me but I will expand a little. partially forgive! :) D> $received_arg = @_; D> You want to shift the argument list but you are actually assigned the D> argument array to a scalar value and that will render it's size (1). D> You

RE: Can't use string 1 as HASH ref while strict refs in use

2010-07-20 Thread Mimi Cafe
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 writes: => => MC> $received_arg = @_; => => read perldoc perl

Re: Can't use string 1 as HASH ref while strict refs in use

2010-07-20 Thread Dermot
On 20 July 2010 04:40, Mimi Cafe wrote: > I passed a has reference to my sub and tried dereferencing it within the sub > and get an exception Can't use string ("1") as HASH ref while strict refs in > use. > > > my %mail_parameters = ( >        'Fname

Re: Can't use string 1 as HASH ref while strict refs in use

2010-07-19 Thread Uri Guttman
> "MC" == Mimi Cafe 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

Can't use string 1 as HASH ref while strict refs in use

2010-07-19 Thread Mimi Cafe
I passed a has reference to my sub and tried dereferencing it within the sub and get an exception Can't use string ("1") as HASH ref while strict refs in use. my %mail_parameters = ( 'Fname' => "$nickname_db_exist[1]", 'Lname&#