Help for this page

Select Code to Download


  1. or download this
    my $ref = \"stuff";
    
  2. or download this
    $$ref =~ s/u/i/;
    ## or even 
    $$ref .= " and more stuff";
    
  3. or download this
    sub modify_string{
      my $arg = \shift;
    ...
      $$arg =~ s/u/i/;
      return $$arg;
    }
    
  4. or download this
    my $string = "stuff";
    modify_string( $string );
    
    ## or even
    my $copy = modify_string( $string );
    
  5. or download this
    my $new_string = modify_string ( "literal stuff" );