Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Checking a path

by bellaire (Hermit)
on Nov 18, 2009 at 17:17 UTC ( #807960=note: print w/replies, xml ) Need Help??

in reply to Checking a path

Using substr like you have in your example probably is the most efficient way to go about this. Usually, though, this kind of micro-efficiency isn't something you need to worry about unless you've done profiling and you know that you have good reason to seek an improvement.

Replies are listed 'Best First'.
Re^2: Checking a path
by AnomalousMonk (Bishop) on Nov 18, 2009 at 17:46 UTC
    Note that for more concision the last character of the string can be obtained by:
    substr($TestStrings{$TestPatternKey}, -1)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://807960]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2020-02-27 06:44 GMT
Find Nodes?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?

    Results (119 votes). Check out past polls.