Re: Use of uninitialized value in print at...

2010-06-07 Thread Chas. Owens
On Mon, Jun 7, 2010 at 01:22, Bryan Harris wrote: snip > How do other people deal with this?  If I have a printf with seven complex > (?, like the above) variables in it and one of them is undef, aside from > breaking them all onto different print lines and re-running the script, how > else can I

Re: Use of uninitialized value in print at...

2010-06-07 Thread Bryan Harris
> On Sun, Jun 6, 2010 at 08:19, Shawn H Corey wrote: >> On 10-06-05 03:26 PM, Bryan Harris wrote: >>> >>> [console] >>> $ perl -e 'use warnings; $c=undef; printf("%s", $c->[0]{dog})' >>> Use of uninitialized value in printf at -e line 1. >>> [/console] >>> >>> Anything that can help me here?  

Re: Use of uninitialized value in print at...

2010-06-06 Thread Uri Guttman
> "SHC" == Shawn H Corey writes: SHC> On 10-06-05 03:26 PM, Bryan Harris wrote: >> [console] >> $ perl -e 'use warnings; $c=undef; printf("%s", $c->[0]{dog})' >> Use of uninitialized value in printf at -e line 1. >> [/console] >> >> Anything that can help me here? I wish it'd

Re: Use of uninitialized value in print at...

2010-06-06 Thread Chas. Owens
On Sun, Jun 6, 2010 at 10:49, Philip Potter wrote: > On 6 June 2010 14:37, Shawn H Corey wrote: >> On 10-06-06 09:06 AM, Chas. Owens wrote: >>> >>> But that is not the problem; autovivification will create the references: >>> >>> perl -MData::Dumper -le '$c->[0]{a}; print Dumper $c' >>> >> >> But

Re: Use of uninitialized value in print at...

2010-06-06 Thread Shawn H Corey
On 10-06-06 10:49 AM, Philip Potter wrote: On 6 June 2010 14:37, Shawn H Corey wrote: On 10-06-06 09:06 AM, Chas. Owens wrote: But that is not the problem; autovivification will create the references: perl -MData::Dumper -le '$c->[0]{a}; print Dumper $c' But that is the problem. Autovivi

Re: Use of uninitialized value in print at...

2010-06-06 Thread Philip Potter
On 6 June 2010 14:37, Shawn H Corey wrote: > On 10-06-06 09:06 AM, Chas. Owens wrote: >> >> But that is not the problem; autovivification will create the references: >> >> perl -MData::Dumper -le '$c->[0]{a}; print Dumper $c' >> > > But that is the problem.  Autovivification should not happen for

Re: Use of uninitialized value in print at...

2010-06-06 Thread Chas. Owens
On Sun, Jun 6, 2010 at 09:37, Shawn H Corey wrote: > On 10-06-06 09:06 AM, Chas. Owens wrote: >> >> But that is not the problem; autovivification will create the references: >> >> perl -MData::Dumper -le '$c->[0]{a}; print Dumper $c' >> > > But that is the problem.  Autovivification should not hap

Re: Use of uninitialized value in print at...

2010-06-06 Thread Shawn H Corey
On 10-06-06 09:06 AM, Chas. Owens wrote: But that is not the problem; autovivification will create the references: perl -MData::Dumper -le '$c->[0]{a}; print Dumper $c' But that is the problem. Autovivification should not happen for r-values, only l-values. -- Just my 0.0002 million

Re: Use of uninitialized value in print at...

2010-06-06 Thread Chas. Owens
On Sun, Jun 6, 2010 at 08:19, Shawn H Corey wrote: > On 10-06-05 03:26 PM, Bryan Harris wrote: >> >> [console] >> $ perl -e 'use warnings; $c=undef; printf("%s", $c->[0]{dog})' >> Use of uninitialized value in printf at -e line 1. >> [/console] >> >> Anything that can help me here?  I wish it'd sa

Re: Use of uninitialized value in print at...

2010-06-06 Thread Shawn H Corey
On 10-06-05 03:26 PM, Bryan Harris wrote: [console] $ perl -e 'use warnings; $c=undef; printf("%s", $c->[0]{dog})' Use of uninitialized value in printf at -e line 1. [/console] Anything that can help me here? I wish it'd say: Use of uninitialized value $c->[0]{dog} in printf at -e line 1.

Re: Use of uninitialized value in print at...

2010-06-06 Thread Bryan Harris
> On Thursday 03 Jun 2010 19:53:48 Bryan R Harris wrote: >> Seems like the first time I run a new script I *always* get an error >> message something like this: >> >> "Use of uninitialized value in printf at /Users/harrisb/Library/perl/matc >> line 414." >> >> The problem is usually I'm print

Re: Use of uninitialized value in print at...

2010-06-03 Thread Shlomi Fish
On Thursday 03 Jun 2010 19:53:48 Bryan R Harris wrote: > Seems like the first time I run a new script I *always* get an error > message something like this: > > "Use of uninitialized value in printf at /Users/harrisb/Library/perl/matc > line 414." > > The problem is usually I'm printing several

Use of uninitialized value in print at...

2010-06-03 Thread Bryan R Harris
Seems like the first time I run a new script I *always* get an error message something like this: "Use of uninitialized value in printf at /Users/harrisb/Library/perl/matc line 414." The problem is usually I'm printing several things, so I have no idea which variable wasn't initialized from t