Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Source filters in eval/require

by BrowserUk (Pope)
on Oct 03, 2003 at 01:03 UTC ( #296134=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    'delete $INC{"Foo"}; use Foo;'
    
  2. or download this
    package Filter::Test;
    use Filter::Simple;
    ...
    ;
    
    print 'Filter::Test loaded';
    
  3. or download this
    #! perl -slw
    use strict;
    ...
    eval "print 'Just another perl hacker'";
    
    #require 'My/filtertest.pm';
    
  4. or download this
    package My::filtertest;
    
    ...
    eval "print 'Just another perl hacker';";
    
    1;
    
  5. or download this
    P:\test>296091
    Filter::Test loaded
    ...
            (Do you need to predeclare PRINT?)
    
    P:\test>
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (15)
As of 2015-07-28 22:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls