[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] - Unix vs Mac file commands



Hello!
   I've been a subscriber of MacPerl for many months now, having archived 
over 1000 postings, and this is my first post!  I've programmed Perl on 
SGI boxes for over two years now... and am just realizing the power of my 
mac as a webserver.

     Long and short of it... Would anybody be kind enough to point me to 
a reference for converting Perl scripts built for UN*X to Mac?  
Specifically the file commands...

snippet---

sub expired	{
    	open (EXPOUT,"<..\:exppw.html");
		    @message = <EXPOUT>;
    	close (EXPOUT);
.....
---
Does the Mac require a full path reference here?
are relative file ref's no-no's?

snippet2---

	chown $nobody,$nobody,"Maxtor\:PUBLIC\:WebSTAR 2.0\:$dir/*";
	$command = `mv Maxtor\:PUBLIC\:WebSTAR 2.0\:$dir\:\* 
Maxtor\:PUBLIC\:WebSTAR 2.0\:$newdir\/\n`;

---
and here... I know to drop the permissions.. but how do I "mv" items?

thanks for your help! (patience)...

-----------------------------
Chris Brinegar

design@netpass.com
NetPassage, Inc.
Design Team

<< Message Signed at 10:11 EST Monday, May 12, 1997 >>
-----------------------------

 




***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch