Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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?
[shmem]: Lady_Aleena: perl -MMP3::Tag -MFile::Find -le 'find(sub{if($File ::Find::name=~/\. mp3$/){$sum+=MP3:: Tag->new($_)-> interpolate("\%S ")} }, "Music"); print "total seconds: $sum"'
[Lady_Aleena]: shmem, sorry I was outside for a moment moving my car out of hubby's way.
[Lady_Aleena]: shmem, there is ONE song which throws a wrench in the works for both MP3::Info and MP3::Tag.

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2017-04-23 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.