Re: [MacPerl-WebCGI] well split!!!

[email protected] Wed, 7 Mar 2001 10:16:51 -0500
Newsgroups perl.macperl.webcgi
Message-ID <p05010402b6cbff4f6049@[64.194.142.225]>
-Bruce:

You said:

>     my ($database_id, $category, $variable_name, $price, 
>$description, $item_number) = split(/\t/);

Where do you people find statements like --

   my ($database_id, $category, $variable_name, $price, $description, 
$item_number) = split(/\t/);

-- anyway? I have numerous books on Perl (including the "Perl Black 
Book") and none of them come even close to describing anything like 
that in providing a definition for split().

However, in a single book, namely "CGI How-To", the author uses the 
following statement:

 
($database_id,$category,$variable_name,$price,$name,$description,$item_number)=split(/\|/,$_);

But, please note the absence of "my".

It's like I'm trying to learn how to program a box of alphabet 
cereal. You people throw out stuff that's not documented in any of 
the reference material I have. It's not a complaint, just an 
observation.

tedd



-- 
http://sperling.com/