On Tuesday, April 30, 2002, at 04:07 , Johnson, Shaunn wrote:

>
> $file="command.txt";
> $file2="command2.txt";
>
> @array=<file>;
> @array2=<file2>;

wouldn't it be nice if

        open(file, $file ) or die "unable to open file $file:$!\n";
        open(file2, $file2 ) or die "unable to open file $file2:$!\n";

were just automajick between the two....
{ I like the idea of the close(file); and close(file2); to
be explicit - right after the 'sucked it all into arrays.... }


> * readline() on closed filehandle main::file at
> ../h_test.pl line 13 (#2)

hence - if you have not opened a thing, that thing is closed

Oh wouldn't it be nice if File Handles blossomed like petals...
rather than all this persnickettyNeff of having to open and
close them on our own....

> * Name "main::array2" used only once: possible typo at
> ../h_test.pl line 14 (#1)

this is the classic - HEY BONE HEAD WHY ALLOCATE WHAT YOU
DID NOT PLAN TO USE - YOU EXPECT TO SELL THE UPGRADE THAT
IS SMALLER AND CHEAPER - but was not allow due to threats
of legal action by a large software development firm that
believed it would breach their intellectual property rights...



ciao
drieux

---


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to