Test::...d::Perl(3pm)

🌸 NAME 🌸

Test::Valgrind::Command::Perl β€” it's a Test::Valgrind command that invokes perl. That's the whole thing. That's the vibe. πŸ’–

Oh also hi bestie, you've landed on the Test::Valgrind::Command::Perl(3pm) page from the User Contributed Perl Documentation, so like, buckle up. 🫢


✨ VERSION ✨

Version 1.19. She's been through some eras and she's thriving. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so listen. This command is the base for literally every perl-based command. The blueprint. The blueprint-est blueprint to ever blueprint. πŸ—οΈβœ¨

What does she actually do? She handles the suppression generation and she sets the main command-line flags. That's it, that's her job, and she eats every single time. πŸ”₯


πŸŽ€ METHODS πŸŽ€

This class inherits Test::Valgrind::Command. Family tree moment, we love a good lineage. 🌳

πŸ“ new

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

The package constructor, and she 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. No gatekeeping, they just go. πŸšͺ

πŸ’œ perl

my $perl = $tvcp->perl;

Read-only accessor for the perl option. Look but do not touch, she's not yours. πŸ™ˆ

πŸ’œ inc

my @inc = $tvcp->inc;

Read-only accessor for the inc option. Same energy, same boundaries. βœ‹

πŸ’œ taint_mode

my $taint_mode = $tvcp->taint_mode;

Read-only accessor for the taint_mode option. Iconic, honestly.

🌈 env

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.

Sanctified. Cleansed. Immaculate. The environment gets a full spa day before the run. πŸ§–βœ¨


πŸ‘€ SEE ALSO πŸ‘€

  • Test::Valgrind
  • Test::Valgrind::Command
  • Env::Sanctify

Go read those too, they're the supporting cast and they're all slaying. πŸ’«


πŸ’– AUTHOR πŸ’–

Vincent Pit, "<perl at profvince.com>", <http://www.profvince.com>.

You can contact me by mail or on irc.perl.org (vincent).


😭 BUGS 😭

Please report any bugs or feature requests to "bug-test-valgrind at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Valgrind>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

So like, tell them, and then the system tells you back. It's a whole mutual-notification situationship and it actually works. πŸ«‚


🫢 SUPPORT 🫢

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.


That's the whole page bestie, go forth and valgrind responsibly πŸ§šπŸ’œ

And for the record, this one shipped with perl v5.40.1, dated 2025-04-13, under the title Test::...d::Perl(3pm) β€” yes she has a birthday and a version stamp, she's that girl. πŸŽ‚πŸ‘‘ mwah πŸ’‹

πŸ“¦ where this page comes from