[Thamesvalley-pm] using third party perl scripts

Ismail, Rafiq (IT) Rafiq.Ismail at MorganStanley.com
Wed Oct 17 06:30:56 PDT 2007

> -----Original Message-----
> From: thamesvalley-pm-bounces+rafiq.ismail=ms.com at pm.org 
> [mailto:thamesvalley-pm-bounces+rafiq.ismail=ms.com at pm.org] 
> On Behalf Of Greg Matthews
> Sent: 17 October 2007 12:37
> To: ThamesValley Perl Mongers
> Subject: Re: [Thamesvalley-pm] using third party perl scripts
> Ismail, Rafiq (IT) wrote:
> >>> do EXPR
> >> its not clear from the docs whether you can capture output 
> from "do" 
> >> (as I do above with the pipe).
> > 
> > Short answer no.  However you can capture the output from STDOUT:
> thanks for the various advice. I must admit I was concerned 
> with using "do". I was thinking about using it for config 
> file slurping but was wondering what would happen if some 
> malicious/ignorant user had write access to the config 
> file... presumably they could execute any perl code they 
> wanted as the userid that the main script is running as?

Not a good idea.  I tend to use XML::Simple for basic xml config files.
Have a look on cpan for 'Config'  there's a host of stuff out there.

NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.

More information about the Thamesvalley-pm mailing list