Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Checking a path

by toolic (Bishop)
on Nov 18, 2009 at 17:17 UTC ( [id://807961]=note: print w/replies, xml ) Need Help??


in reply to Checking a path

This is less code. It appends a trailing backslash only if your string does not have one. You must decide whether it is easier for you to understand than the code you already have:
$TestStrings{$TestPatternKey} =~ s/\\?$/\\/;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-23 20:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found