Help for this page

Select Code to Download


  1. or download this
    my $bar = 3;
    my $foo = 'Bar is $bar';
    print $foo, "\n";
    
  2. or download this
    my $bar = 3;
    my $foo = "Bar is $bar";
    print $foo, "\n";
    
  3. or download this
    For literal strings, quote with Single.
    (Isn't this a silly jingle?)
    Interpolation uses Double.
    Forget this rule, you'll be in trouble.