Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Defining a sub within a sub: OK?

by talexb (Chancellor)
on Oct 14, 2009 at 21:35 UTC ( [id://801215]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    #
    ...
        level1();
        print "Finished!\n";
    }
    
  2. or download this
    foo@bar:~/dev$ perlcritic --severity=4 subinsub.pl
    Subroutine does not end with "return" at line 11, column 5.  See page 
    +197 of PBP.  (Severity: 4)
    
  3. or download this
    foo@bar:~/dev$ perl -w subinsub.pl
    In the mainline.
    Inside level1!
    Finished!
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://801215]
Approved by AnomalousMonk
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found