Re: Using an undefined value as a hash reference

2011-08-07 Thread Octavian Rasnita
ust like in case it would have used %parameters instead of @parameters... it doesn't break. Octavian - Original Message - From: "Shlomi Fish" To: "Octavian Rasnita" Cc: Sent: Sunday, August 07, 2011 3:52 PM Subject: Re: Using an undefined value as a hash ref

Re: Using an undefined value as a hash reference

2011-08-07 Thread Shlomi Fish
Hi Octavian, On Sun, 7 Aug 2011 12:28:27 +0300 "Octavian Rasnita" wrote: > Hi, > > I made the following test script: > > use strict; > use warnings FATAL => 'all'; > use LWP::UserAgent; > > my $fields; > > my $ua = LWP::UserAgent->new; > my $res = $ua->get( 'http://www.google.com/', %$fields

Using an undefined value as a hash reference

2011-08-07 Thread Octavian Rasnita
Hi, I made the following test script: use strict; use warnings FATAL => 'all'; use LWP::UserAgent; my $fields; my $ua = LWP::UserAgent->new; my $res = $ua->get( 'http://www.google.com/', %$fields ); This script runs with no errors, although the variable $fields is undefined and it is used as