Help for this page

Select Code to Download


  1. or download this
    sub main::BEGIN { print "X\n" }
    
  2. or download this
    *main::BEGIN = sub { print "X\n" };
    &BEGIN;
    
  3. or download this
    *main::BEGIN = sub { print "X\n" };
    BEGIN();
    
  4. or download this
    *main::BEGIN = sub () { print "X\n" };
    BEGIN();
    
  5. or download this
     
    perl -e 'BEGIN'    # Syntax error. 
    perl -e 'BEGIN;    # No error.
    perl -e 'BEGIN()'  # Syntax error.
    perl -e 'BEGIN();' # No error.