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

Re^3: Why am I getting "premature end of script header"? - &subroutine calling style

by imp (Priest)
on Nov 27, 2006 at 22:46 UTC ( #586350=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    BEGIN {
        if( eval "use fakemodule; 1;") {
    ...
            print STDERR "Couldn't load fakemodule.";
        }
    }
    
  2. or download this
    first(1,2,3);
    
    sub first {
    ...
    }
    
    # Output is 123
    
  3. or download this
    use strict;
    use warnings;
    ...
    my @list = (1,2,3);
    pro(@list);
    &pro(@list);
    
  4. or download this
    $VAR1 = [
              [
    ...
              2,
              3
            ];
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2022-09-27 11:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (119 votes). Check out past polls.

    Notices?