Inherited code (from Verisign): @[EMAIL PROTECTED] = split /\t/,$rec;
which worked but really puzzled me.
I assumed that it meant[EMAIL PROTECTED] = split /\t/,$rec;
which worked also as I verified by testing both versions.
However [EMAIL PROTECTED] = split /\t/,$rec;
gives the warning quo
On Sun, 2006-02-04 at 06:59 -0400, John Ackley wrote:
> Inherited code (from Verisign): @[EMAIL PROTECTED] = split /\t/,$rec;
> which worked but really puzzled me.
>
> I assumed that it meant[EMAIL PROTECTED] = split /\t/,$rec;
> which worked also as I verified by testing both versions.
>
On Sun, 2006-02-04 at 06:59 -0400, John Ackley wrote:
> I assumed that it meant[EMAIL PROTECTED] = split /\t/,$rec;
> which worked also as I verified by testing both versions.
>
> However [EMAIL PROTECTED] = split /\t/,$rec;
> gives the warning quote: Use of implicit split to @_ is deprecated
Addendum to previous post:
See `perldoc -f split` for more details.
--
__END__
Just my 0.0002 million dollars worth,
--- Shawn
"For the things we have to learn before we can do them, we learn by doing them."
Aristotle
* Perl tutorials at http://perlmonks.org/?node=Tutorials
* A searc
Thanks Shawn - I think I got it now.
The first @ in
@[EMAIL PROTECTED] = split /\t/,$rec;
flags list context for the split
else a $ would flag a scalar context
which is deprecated because of the implicit
split to @_ that could clobber subroutine arguments.
And (mis)use of $ rather than @ lead
On Sat, 01 Apr 2006 09:29:47 -0700, Bryan Harris wrote:
> This looks very interesting... I downloaded it, but I have no idea how to
> install it, though. I'm a modules-idiot. I tried putting the .pm file in
> the current directory and putting "use TimeTick.pm;" at the beginning of my
> code, but
> On Sat, 01 Apr 2006 09:29:47 -0700, Bryan Harris wrote:
>> This looks very interesting... I downloaded it, but I have no idea how to
>> install it, though. I'm a modules-idiot. I tried putting the .pm file in
>> the current directory and putting "use TimeTick.pm;" at the beginning of my
>> c