Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: smart solution

by poolpi (Hermit)
on Jun 26, 2009 at 12:39 UTC ( #775039=note: print w/ replies, xml ) Need Help??


in reply to smart solution

Not tested

sub dispatch_closing { my ( $line, $fh, $HR_record ) = @_; return unless $line =~ /((?:SERVICE|WEB)_APPLICATION_EXECUTION_COMPONENT)|(UNX|WNT)/; my $sep = q{>}; my $env = 'ENVIRONMENT_VARIABLE'; my $res = 'RESOURCE'; if ( defined $1 ) { $sep = ( $1 =~ /SERVICE/ ) ? q{>} : q{}; printf( $fh, "\t%s Id=\"%s\"%c%s%s%c\n", , $env, $_, $sep, $HR_record->{$_}, $env ) for keys %$HR_record; } else { $sep = ( $2 =~ /UNX/ ) ? q{>} : q{}; printf( $fh, "\t%s Id=\"%s\" Source= %s %s%c}\n", $res, $_, substitute( $HR_record->{$_} ), $res, $sep ) for keys %$HR_record; } }


hth,
PooLpi

'Ebry haffa hoe hab im tik a bush'. Jamaican proverb


Comment on Re: smart solution
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2014-07-13 15:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (250 votes), past polls