Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Filename Template

by larsen (Parson)
on Aug 07, 2003 at 14:50 UTC ( #281913=note: print w/replies, xml ) Need Help??


in reply to Filename Template

... the template bit is. This config value should match files that have 4 alpha characters, then a -, then 8 numeric characters. ...
If you say regular expression instead of template maybe you'll find the light.

Replies are listed 'Best First'.
A few definitions (was Re2: Filename Template)
by dragonchild (Archbishop) on Aug 07, 2003 at 15:23 UTC
    To expand on this, general usage of the following terms could be defined as follows:
    • Template: A format used for describing output
    • Format: A way of abstractly expressing how something should look, as opposed to what the content should be
    • Regular Expression: A way of defining some set of matching criteria, often used for limiting or parsing input
    • Mask: A format used for constraining input
    Hopefully, that helps!

    ------
    We are the carpenters and bricklayers of the Information Age.

    The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

    Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

      Yes. And it offers me a way to expand my previous answer. You say that a template is "a format used for describing output". I'll go further, saying that a template generates a language (i.e. a set of strings). On the other hand a regular expression denotes a language, then is usable to recognize strings that belong or not to a set. Since the original question asked for a way to recognize strings in a set, I suggested to change terminology in order to be conducted to the right abstraction that Perl provides.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://281913]
help
Chatterbox?
[makita]: sign_types parameter in XML::Compile::WSS ::Signature Does have anybody experience how to use it?
[makita]: Need to sign more elements but all types I put in array are ignored. And is always signed only the body
[Discipulus]: no makita sorry. i see in the synopsis of the module: "WARNING: Only limited real-life experience" might be better compose a SOPW with some code example and data
[Discipulus]: ..or inspect the source code of the module
[makita]: I am doing this:
[makita]: my $sig = $wss->signature( schema => $wsdl, token => $token, sign_types=>'wsa: Action','wsa:To', 'wsu:Timestamp', 'wsa:MessageID',' SOAP-ENV:Body', signer=>DSIG_RSA_S HA1, public_key => $cert,
[Corion]: Oof, I haven't done much with signing SOAP requests. markov is usually somebody good to ask via mail ;)
[makita]: I need to create a SOAP call where are signed more types not only the body
[makita]: I am inspecting it second day :)

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2017-03-23 08:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (285 votes). Check out past polls.