Help for this page

Select Code to Download


  1. or download this
    open(IN, "foo") || die "can't open foo";
    #versus#
    open(IN, "foo") || die "can't open foo\n";
    
  2. or download this
    sub whoami  { (caller(1))[3] };  #name of the sub that called this sub
    sub whowasi { (caller(2))[3] };  #name of the parent of that sub