Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Is this code secure, can I test it on my machine?

by szabgab (Priest)
on May 24, 2010 at 09:50 UTC ( [id://841352]=note: print w/replies, xml ) Need Help??


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, ...;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://841352]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-24 11:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found