Use of unitialised gubbins c/w Brainbench

Robin Barker Robin.Barker at npl.co.uk
Thu Dec 7 14:03:21 GMT 2006




> If it gives a 'use of uninitialised variable' warning, is there anyway
> (without lots of debugging warns) for me to change the output of the warning
> to say 'Variable 'foo' was uninitialised at line blah'?

bleadperl e.g. perl-5.9.[45] does this.

./perl -we 'my $a;  printf "%d\n", $a'
Use of uninitialized value $a in printf at -e line 1.
0

Robin

-------------------------------------------------------------------
This e-mail and any attachments may contain confidential and/or
privileged material; it is for the intended addressee(s) only.
If you are not a named addressee, you must not use, retain or
disclose such information.

NPL Management Ltd cannot guarantee that the e-mail or any
attachments are free from viruses.

NPL Management Ltd. Registered in England and Wales. No: 2937881
Registered Office: Serco House, 16 Bartley Wood Business Park,
                   Hook, Hampshire, United Kingdom  RG27 9UY
-------------------------------------------------------------------



More information about the london.pm mailing list