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

[email protected] (Adam Witney) Wed, 07 Mar 2001 10:00:23 -0500
Newsgroups perl.macperl.webcgi
Message-ID <B6CBB736.826F%[email protected]>
> However, the following code generates an error:
> 
> open(DATA,$datafile) || &open_error($datafile);
> while (<DATA>) {
> next if /^$/;
> my ($database_id, $category, $variable_name, $price,
> $description, $item_number) = split(/\t/);
> 
> print <<ROW;
> <TR>
> <TD>$variable_name</TD>
> <TD>$description</TD>
> </TR>
> ROW
> }
> 
> Why?

I don't know if it is the way my email program presented it... but make sure
there are no spaces before the closing ROW. If that part is ok then what
error is being generated by this code?

adam