Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: What's the best way to convert a non interpolated single-quoted string into an interpolated double-quoted string?

by jeffa (Bishop)
on Mar 15, 2012 at 19:58 UTC ( #959847=note: print w/replies, xml ) Need Help??


in reply to What's the best way to convert a non interpolated single-quoted string into an interpolated double-quoted string?

I would simply store the relative "path" part and leave the $ENV{HOME}/ out completely. Then, after you parse the XML file you can prepend the value of $ENV{HOME}, perhaps with a rule that only if the value is relative and not absolute.


jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)
  • Comment on Re: What's the best way to convert a non interpolated single-quoted string into an interpolated double-quoted string?
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: What's the best way to convert a non interpolated single-quoted string into an interpolated double-quoted string?
by emilbarton (Scribe) on Mar 15, 2012 at 20:28 UTC
    Yes I wanted the user to be able to change the path afterwards through some specific pref pane without being enclosed at $HOME, your solution might do it well.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://959847]
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 :)
[makita]: Thanks

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



    Results (285 votes). Check out past polls.