Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by kilinrax (Deacon)
on Dec 07, 2000 at 02:04 UTC ( #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? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2022-05-28 20:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (101 votes). Check out past polls.

    Notices?