Ask a Question related to PERL Miscellaneous, Design and Development.
-
Steve Grazzini #1
Re: what exactly do you need to escape? (I can never get this straight)
Steve <me@home.com> wrote:
You never *need* to escape slash. The only time you might want> As the topic says, what exactly do you need to escape? I can
> never get this straight. For instance, I see this line of code
> when reading through the newsgroups:
>
> unlink glob "$jukebox[$i]/$date/*" or die "Cannot unlink files: $!";
>
> but I am always escaping the forward slash as \/.
to escape it is inside a quote-like operator that has used it for
the quote-character:
next if /$jukebox[$i]\/$date/;
But instead of escaping it there, you'll usually just pick a
different quote-character.
next if m|$jukebox[$i]/$date|;
To answer the more general question:
The list of what counts as a metacharacter and where is in the
"Quote and Quote-like Operators" section of perlop.
% perldoc perlop
% perldoc -f quotemeta
--
Steve
Steve Grazzini Guest
-
Which db connection is better? DSN vs. straight
> hard code the connection into your code calling the servername and database file) DSN ODBC is deprecated. Use OLEDB / DSN-less whenever... -
EMail straight from Flash
Hi, hope you can help! I have created a support system that will tell the user (by a green or red light) that a range of devices work (by pinging... -
Straight connectors?
Hi, is it possible to create straight connectors in Freehand? E.g. from one corner of a rectangle to a corner of another rectangle, i.e. from one... -
Rotation but keep going straight???
I have model that I'm translating along the x axis e.g.(pModel.translate(2,0,0)). At a certian point on the x axis e.g.(if pModel.transform.position... -
drawing a straight line!!! IS THIS ACTUALLY POSSIBLE??
don't use the shift key, and drag the line out by hand, check that the top and bottom rect points are only 1 pixel apart and you will have a... -
Steve #2
what exactly do you need to escape? (I can never get this straight)
Hi all,
As the topic says, what exactly do you need to escape? I can never get
this straight. For instance, I see this line of code when reading
through the newsgroups:
unlink glob "$jukebox[$i]/$date/*" or die "Cannot unlink files: $!";
but I am always escaping the forward slash as \/.
Thanks in advance,
Steve
Steve Guest
-
Steve #3
Re: what exactly do you need to escape? (I can never get this straight)
Hey, thanks Steve for the info!
Steve Guest



Reply With Quote

