Help for this page

Select Code to Download


  1. or download this
    our $var;
  2. or download this
    use vars qw( $var );
  3. or download this
    use warnings;
  4. or download this
    #!perl -w
  5. or download this
    $func_ref[3]($var);
  6. or download this
    $func_ref[3]->($var);
  7. or download this
    $param_ref = \@_;
  8. or download this
    $param_ref = [ @_ ];
  9. or download this
    $_++ for values %hash;
  10. or download this
    $hash{$_}++ for keys %hash;
  11. or download this
    $_++ for @hash{keys %hash};
  12. or download this
    use bytes;
  13. or download this
    $INC{ 'bytes.pm' }++ 
      if $] < 5.006;
    use bytes;
    
  14. or download this
    open my $fh, "<$filename" 
      or die "Cannot read $filename: $!";
    
  15. or download this
    my $fh = do { local *FH; *FH };
    open $fh, "<$filename" 
      or die "Cannot read $filename: $!";
    
  16. or download this
    $object->$method;
  17. or download this
    $object->$method();