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

Re: Executing an app and returning output in a regex.

by kilinrax (Deacon)
on Dec 07, 2000 at 02:04 UTC ( [id://45343]=note: print w/replies, xml ) Need Help??


in reply to Executing an app and returning output in a regex.

That code should work, if `sabcmd ...` is returning a value.
Try testing it by breaking that secion of code into two chunks:
my $sabcmd = `sabcmd $boilervalues{'XSLTPath'}\\$xsl $xml`; print "SABCMD: $sabcmd\n"; $_ =~ s/<!--PERLINSERT:transformXML-->/$sabcmd/gi;

Replies are listed 'Best First'.
Re: Re: Executing an app and returning output in a regex.
by Gibble (Novice) on Dec 07, 2000 at 02:22 UTC
    Well that works! Of course I was wondering why I had all the extra output until I noticed the print "SABCMD..." line :) Tx for the help!!! I am still wondering why it didn't work in the regex though?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-24 08:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found