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

Re: [MacPerl] CGI Search scripting....



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At 4:04 PM -0800 2/9/98, Tadd M. Williams wrote:

} Using macperl I im ported a search engine CGI and my problem lies with the
} directory path diferences with mac and unix.
} 	When someone clicks on the url they searched for a : appears before
} the filename instead of a /.  My problem is when I put a / instead of a :
} for my path in the script, the script won't work at all...
} 	So mac needs :, but how do I tell the script to convert the : for
} mac to a / for the unix url??

#!perl
use URI::URL;

#An actual file on my main disk
$filename = "The Black Pits:HTML:bookmarks.html";

$url = URI::URL->newlocal($filename);
print $url->as_string."\n";

Is that what you're after?  If not, could you please be more specific next
time?

}
}
} Can u help??
}
} I'm desperatly asking everyone...with no success so far...
}
} Tadd
}
}
}
} ===================================================
} Tadd M. Williams
} Computer Resource Specialist
} UCSD Department of Theatre & Dance
} 9500 Gilman Dr. 0344
} La Jolla, CA 92093-0344
} 619-534-3791
}


- -----
Paul J. Schinder
schinder@pobox.com


-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBNN+l2VZaVc52j0XhEQIvHwCg/fKu0J1P+ltvcMFp7EOQrj3gDbMAoPAc
7UIjOxZXjmuogV9nbJo1PLY3
=Ky46
-----END PGP SIGNATURE-----


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