Re: Sorting? [sorted]
Re: Sorting? [sorted]
- Subject: Re: Sorting? [sorted]
- From: John Delacour <email@hidden>
- Date: Fri, 13 Sep 2002 22:17:26 +0100
At 9:55 am -1000 13/9/02, Reinhold Penner wrote:
JD,
in perl you can substitute "/" by a pipe. Since perl uses a lot of
stuff that needs to be escaped, you will avoid the dreadful picket
fence look at least to some extent. So in a match or substitute
section, you can use this instead of slashes:
s|</font>| |gs;
which comes in real handy when you're dealing with paths or html
stuff like above, since you won't have to escape the slashes.
But I normally use "~" rather than the slash in any case, as you will
see from any perl stuff I've posted here. You can use any character
you want
do shell script "perl -e '
$_ = q)hello); # !
s~e~a~;
s#l## ;
print'"
I thought you'd found a way to avoid escaping BACKslashes!
JD -- Not holding his breath
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.