Scroll to navigation

Test::Valgrind::Command::Perl(3pm) User Contributed Perl Documentation Test::Valgrind::Command::Perl(3pm)


Test::Valgrind::Command::Perl - A Test::Valgrind command that invokes perl.


Version 1.19


This command is the base for all "perl"-based commands. It handles the suppression generation and sets the main command-line flags.


This class inherits Test::Valgrind::Command.


    my $tvcp = Test::Valgrind::Command::Perl->new(
     perl       => $^X,
     inc        => \@INC,
     taint_mode => $taint_mode,

The package constructor, which takes several options :

  • The "perl" option specifies which "perl" executable will run the argument list given in "args".

    Defaults to $^X.

  • "inc" is a reference to an array of paths that will be passed as "-I" to the invoked command.

    Defaults to @INC.

  • $taint_mode is a boolean that specifies if the script should be run under taint mode.

    Defaults to false.

Other arguments are passed straight to "Test::Valgrind::Command->new".


    my $perl = $tvcp->perl;

Read-only accessor for the "perl" option.


    my @inc = $tvcp->inc;

Read-only accessor for the "inc" option.


    my $taint_mode = $tvcp->taint_mode;

Read-only accessor for the "taint_mode" option.


    my $env = $tvcp->env($session);

Returns an Env::Sanctify object that sets the environment variables "PERL_DESTRUCT_LEVEL" to 3 and "PERL_DL_NONLAZY" to 1 during the run.


Test::Valgrind, Test::Valgrind::Command.



Vincent Pit, "<perl at>", <>.

You can contact me by mail or on "" (vincent).


Please report any bugs or feature requests to "bug-test-valgrind at", or through the web interface at <>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.


You can find documentation for this module with the perldoc command.

    perldoc Test::Valgrind::Command::Perl


Copyright 2009,2010,2011,2013,2015,2016 Vincent Pit, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2022-02-20 perl v5.34.0