Help for this page

Select Code to Download


  1. or download this
    my $foo = Obj->new;
    for (qw( create init add )) {
      $foo->$_();  # note -- $foo->$_ will not work, ()'s needed
    }
    
  2. or download this
    my $meth = 'meth';
    $A::B::{$meth}->(25);
    # %A::B:: is a symbol table
    # $A::B::{$meth} holds the typeglob *A::B::meth
    # *A::B::meth->(...) is like A::B::meth(...)
    
  3. or download this
    #!/usr/bin/perl
    
    ...
    open ::, ".cshrc";
    print scalar <::>;  # is there no end to this madness?
    close ::;