[Kc] Scalar + Shift?
Frank Wiles
frank at wiles.org
Thu Aug 3 14:05:57 PDT 2006
On Thu, 3 Aug 2006 10:29:24 -0500
Eric <eric at alliances.org> wrote:
> I wouldn't be too concerned. This particular issue is similar to
> something like:
>
> my @x = split;
>
> You just need to realize that the command doesn't make sense without
> an argument. None is given, so it must be using "the current thing"
> - whatever that may be in the particular context.
Which 99% of the time is a horrible way to code, in my opinion. Being
just slightly more specific can turn that guessing game into a easy
to understand line of code such as:
my @csv_data = split( /,/, $data_line );
---------------------------------
Frank Wiles <frank at wiles.org>
http://www.wiles.org
---------------------------------
More information about the kc
mailing list