develooper Front page | perl.perl5.porters | Postings from September 2003

Re: How to detect hash randomization?

Thread Previous | Thread Next
From:
Paul Johnson
Date:
September 8, 2003 03:05
Subject:
Re: How to detect hash randomization?
Message ID:
34510.193.134.254.145.1063015442.squirrel@wesley.pjcj.net

slaven@rezic.de said:
> Elizabeth Mattijsen <liz@dijkmat.nl> wrote:
>> # Get the -Accflags= settings using this Perl executor
>>
>>      open my $handle, "$^X -V:ccflags |"
>>       or die "Could not execute $^X -V:ccflags: $!\n";
>>      my $ccflags = <$handle>;
>>      close $handle;
>
> Maybe better use:
>
> require IO::Pipe;
> my $pipe = IO::Pipe->new->reader($^X, "-V:ccflags");
> my $ccflags = <$pipe>;
> $pipe->close;

Or possibly just:

use Config;
my $ccflags = $Config{ccflags};

-- 
Paul Johnson - paul@pjcj.net
http://www.pjcj.net


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About