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
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
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