in reply to Re: Re: Re: Re: Bug with lists?
in thread Bug with lists?

This has been posted to p5p in the past. See here. FWIW I was said user, and that was less than 6 months after I started learning Perl.

IMHO the best possible documentation is to firmly get down Perl's idea of what a list is versus what a scalar is. If you understand what a list is, then it is obvious that ,, shouldn't insert an undef. If you don't, particularly if you are translating some VB code that uses commas as placeholders...

Replies are listed 'Best First'.
Re: Re (tilly) 5: Bug with lists?
by demerphq (Chancellor) on Feb 19, 2002 at 09:11 UTC
    Well, its nice to know im in good company. /ducks ;-)

    Its true what you say about list context. And to be honest prior to this I would have said that I _did_ grok it. But it appears I am wrong. The fact that this wasn't docmented under perlop (which as Ive been harping about is where I would have expected this behaviour to be documented) is what threw me.

    Anyway, this is a lesson that won't be forgotten any time soon, if at all. :-)

    Yves / DeMerphq
    --
    When to use Prototypes?