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.netThread Previous | Thread Next