>shift @columns if not defined $column[0];
^^^^^^^^^
Thanks for the correction. It seemed
almost like a natural extension of
defined which I tried before posting.
Alfred,
Jeff 'japhy' Pinyan wrote:
> On Oct 18, Alfred Vahau said:
>
> >> How do I get rid of the comma in the first value?
> >You could try shifting to the left like
> >
> >shift @columns if (undef $column[0]);
>
> undef() is not a test. undef() undefines things.
>
> shift @columns if not defined $column[0];
>
> The simplest solution is:
>
> print join "," => grep length, @columns;
>
> or more safely:
>
> print join "," => grep defined && length, @columns;
>
> --
> Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
> RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
> ** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
> <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course.
> [ I'm looking for programming work. If you like my work, let me know. ]