develooper Front page | perl.beginners | Postings from December 2002

Re: < a very novice > file location

Thread Previous | Thread Next
Jenda Krynicky
December 5, 2002 10:26
Re: < a very novice > file location
Message ID:
Date sent:      	Thu, 05 Dec 2002 12:56:14 -0500
From:           	"Sam Harris" <>
To:             	<>
Subject:        	< a very novice > file location

> I m very new to perl, please notice the errors I am including and tell
> me how simple it is to correct them :)
>  I have and to be used in a directory above the one
>  where
> perl is, my script gives me an error that says 
> # ./net_watch
> ../net_watch[2]: use:  not found
> ../net_watch[3]: use:  not found
> ../net_watch[4]: syntax error at line 4 : `(' unexpected
> how do I solve the path requirement issue for perl for the error 1 -2,
> then why is the third error is there from the following:
> #/usr/perl5/5.00503/bin/perl

This should be


(Assuming the path is correct)

What you had was just a comment and the code was not executed by 
Perl, but by the shell.

===== === =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
	-- Terry Pratchett in Sourcery

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About