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

Re: [MacPerl] Mac-perl Directory translation question....



At 04.27 98.02.06, Tadd Williams wrote:
>I'm working with a perl search script, and I need to list a directory
>path, and as I'm sure as you all know mac uses : while perl likes /

Noooooooo.

Unix uses /.  Windows uses \ and sometimes /.  Mac uses :.

>When the script translates the url after the search the : appears
>instead of  / and as a result the link gives me a 400 bad request error
>telling me that you can't use : in a url..
>
>please help...can I do anything???

Sure.  Change the /s to :s.

See the Help on Regular Expressions or perlfaq6 on regular expressions.

Also, for more information on other slight differences in paths, see
"Macintosh Specific Features", also under Help.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==               New Book:  MacPerl: Power and Ease               ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



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