Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Writing Solid CPAN Modules

by eyepopslikeamosquito (Canon)
on Jan 03, 2005 at 08:28 UTC ( #418891=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Abstract_noun
    Abstract_noun::Adjective
    Abstract_noun::Adjective1::Adjective2
    
  2. or download this
    package Disk;
    package Disk::Audio;
    package Disk::DVD;
    package Disk::DVD::Rewritable
    
  3. or download this
    use Test::More;
    eval "use Test::Pod::Coverage 0.08";
    plan skip_all => "Test::Pod::Coverage 0.08 required for testing POD co
    +verage" if $@;
    all_pod_coverage_ok();
    
  4. or download this
    sub fred {
        open(FH, "< f.tmp") or die "open error f.tmp";
    ...
    eval { fred() };
    if ($@) { print "died: $@\n" }
    # oops, handle FH is still open if exception was thrown.
    
  5. or download this
    sub fred {
        open(my $fh, "< f.tmp") or die "open error f.tmp";
    ...
    eval { fred() };
    if ($@) { print "died: $@\n" }
    # ok, $fh is auto-closed when its ref count goes to zero
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://418891]
Approved by pelagic
Front-paged by grinder
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2014-08-01 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (0 votes), past polls