On Sun, Jul 22, 2001 at 10:07:22PM -0700, Peter Scott wrote:
> At 12:14 PM 7/21/2001 -0700, you wrote:
> >The other
> >reason is to make newbie mistakes like the following
> >compile-time errors;
> >
> > @A={ 'a', 'b' } ; # Warning: odd number of initializers!
Sorry, you're quite right, I had intended a hash assignment
(I'll blame this on typing on my way to the airport!)
-Tim
>
> ??? I don't think the warning is that the number is odd but that the right
> hand side contains only one item. If you meant
>
> %H = { 'a', 'b' };
>
> then that of course is already a run time warning, and even more helpful
> (reference found where even-sized list expected) but yer average newbie
> can't tell the difference between compile time and run time...
> Peter Scott
> [EMAIL PROTECTED]
> http://www.perldebugged.com
>
--
*=========================================================================*
| Dr. Tim Maher, CEO, Consultix (206) 781-UNIX/8649; ask for FAX# |
| Email: [EMAIL PROTECTED] Web: http://www.consultix-inc.com |
| TIM MAHER: Unix/Perl DAMIAN CONWAY: Adv. Perl COLIN MEYER: Perl/DBI |
| CLASSES-> Minimal Perl: 9/17; Perl+Mods: 9/18; UNIX: 9/24; Shell: 10/8 |
*=========================================================================*