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

Re: < a very novice > file location

Thread Previous | Thread Next
From:
Jenda Krynicky
Date:
December 5, 2002 10:26
Subject:
Re: < a very novice > file location
Message ID:
3DEFA84E.31399.EAEEBB@localhost
Date sent:      	Thu, 05 Dec 2002 12:56:14 -0500
From:           	"Sam Harris" <HarrisS@franklin.edu>
To:             	<beginners@perl.org>
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 MD5.pm and Std.pm 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

	#!/usr/perl5/5.00503/bin/perl

(Assuming the path is correct)

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

Jenda
===== Jenda@Krynicky.cz === http://Jenda.Krynicky.cz =====
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About