Help for this page

Select Code to Download


  1. or download this
    if    ($type eq 'SCALAR') { undef ${*{$glob}} ;}
      elsif ($type eq 'ARRAY')  { undef @{*{$glob}} ;}
      elsif ($type eq 'HASH')   { undef %{*{$glob}} ;}
      elsif ($type eq 'CODE')   { undef &{*{$glob}} ;}
      elsif ($type eq 'IO')     { close *{$glob} ;}
    
  2. or download this
    ($type eq 'IO') ? close *{$glob} : undef *{$glob}{$type};
    
  3. or download this
    undef *{$glob}{$type};