Help for this page

Select Code to Download


  1. or download this
    my $v="toto";
    change( $v);
    print $v;
    sub change { $_[0]="tata"; }
    
  2. or download this
    sub my_print
      { if(UNIVERSAL::isa($_[0], 'GLOB' )) 
          { my( $fh, $text)= @_;
    ...
        else
          { print "my", $text; }
      }
    
  3. or download this
    #!/bin/perl -w
    use strict;
    my $s="toto";
    ...
      { $_[0] .= $_[1]; }
    sub append_nb
      { $_[0] += $_[1]; }