In article <[EMAIL PROTECTED]> wrote "Michael Fowler" 
<[EMAIL PROTECTED]>:

>> ...
>> > if(open(FILE1, "/Users/tor/Perl/test")) {
>>                                   ^^^^
>> On a *nix system I would never give a file or a script the name test. test is a 
>system command on
>> unix and
>> if the file doen't exist,
>> unix would call the test command and redirect it's output to your script.
> 
> I'm not sure how you came to this conclusion.  There is no way the open command he's 
>using will
> execute an external program.  A file named test is perfectly valid, and the only way 
>to run the
> test program is the same way you'd run any other program: explicitly.

Of course, you're right. I've been too strict.
An open FILE, "test |" or ...
statement would be necessary to deal with test unix test command.

But I've seen many students wasting hours of their life,
only because they give a file the name test and tried to execute it :-)

Greetings,
Andrea


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

Reply via email to