Help for this page

Select Code to Download


  1. or download this
    prompt> perl
    $foo = "cheese";
    ...
    print "Bar is [$bar]\n";
    ^D
    Bar is [stuff/cheese.txt]
    
  2. or download this
    prompt> perl
    $foo = "cheese";
    ...
    print "Bar is [$bar]\n";
    ^D
    Bar is [stuff/$foo.txt]
    
  3. or download this
    $bar = "stuff/$foo1234"; # Bad
    $bar = "stuff/${foo}1234"; # Good