Help for this page

Select Code to Download


  1. or download this
    %customer = (
        fname => 'John',
        lname => 'Doe',
        phone => undef,
    );
    
  2. or download this
    sub thing {
        my $string = shift;
        my ($f0, $f1, $f2, $f3, $f4, $f5) = split /|/, $string;
        $f2 = $f4 + 5;
        return ($f0, $f2, $f3);
    }
    
  3. or download this
    sub thing {
        my $string = shift;
        my ($f0, $f1, $f2, $f3, $f4, $f5) = split /|/, $string;
        $f2 = $f4 + 5;
        return ($f0, $f1, $f2, $f3);
    }
    
  4. or download this
    sub thing {
        my $string = shift;
        my @f = split /|/, $string;
        $f[2] = $f[4] + 5;
        return @f;
    }