Help for this page

Select Code to Download


  1. or download this
    sub foo {
      my ( $arg ) = @_ ;
    ...
      print "foo1: $foo1\n" ;
      print "foo2: $foo2\n" ;
    
  2. or download this
    ARG[123]
    ARG[456]
    foo1: RE[123]
    foo2: RE[456]
    
  3. or download this
      my $e = 10 ;
      my $sub = eval(" sub { return 2**$e } ") ;
    
  4. or download this
      sub foo { print "foo\n" ;}
      # now redefining it:
      *foo = sub { print "bar\n" ;}