in reply to Re: Is this code secure, can I test it on my machine?
in thread Is this code secure, can I test it on my machine?

Nice. Can you make this work with strict as well?
  • Comment on Re^2: Is this code secure, can I test it on my machine?

Replies are listed 'Best First'.
Re^3: Is this code secure, can I test it on my machine?
by salva (Canon) on May 24, 2010 at 10:26 UTC
    use strict; use warnings; use Data::Dumper; sub foo { use constant foo1 => $^H = 0; push @{reverse 'CNI'}, 'hello'; } foo(); print Dumper \@INC;
Re^3: Is this code secure, can I test it on my machine?
by ikegami (Patriarch) on May 24, 2010 at 22:24 UTC
    Sure:
    no strict 'refs'; unshift @{ 'INC' }, ...;
    Similar,
    unshift @{ $::{INC} }, ...;
    unshift @{ *INC }, ...;

    These might be considered the same as @INC, or maybe not:

    unshift @::INC, ...;
    unshift @main::INC, ...;