Help for this page

Select Code to Download


  1. or download this
    $bar = "Hello %s world!\n";
    
    ...
        $foo =~ s/h/j/;
        printf $bar, $foo; # prints "Hello jello world!"
    }
    
  2. or download this
    $bar = "Hello $foo world!\n";
    
    ...
        print "$foo\n";    # prints "jello"
        print $bar;        # prints "Hello  world!"
    }