Help for this page

Select Code to Download


  1. or download this
    my $txt = 'hello world';
    print "$txt\n";           # prints "hello world"
    my $txt = 'oh noes';
    print "$txt\n";           # prints "oh noes"
    
  2. or download this
    my $txt = 'hello world';
    print "$txt\n";
    $txt = 'oh noes';         # note, no "my"
    print "$txt\n";