Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Test::Harness: Calling a script with proper @INC

by chromatic (Archbishop)
on Jul 17, 2011 at 17:08 UTC ( #914975=note: print w/replies, xml ) Need Help??

in reply to Test::Harness: Calling a script with proper @INC

You could add use blib; to that test file, or you could extract all of the code from the script into its own module and test that just as you would any other module. I tend to do the latter.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://914975]
[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.
[shmem]: Lady_Aleena: fix it, or delete it ;-)

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

    Results (432 votes). Check out past polls.