Help for this page

Select Code to Download


  1. or download this
    use Benchmark ':all';
    
    ...
        e_double => sub { eval q{"foo"} },
        e_single => sub { eval q{'foo'} },
    });
    
  2. or download this
    $ perl -MO=Concise -e'$x=q{foo}' > single.txt
    -e syntax OK
    ...
    $ diff -s single.txt double.txt
    Files single.txt and double.txt are identical
    $ rm single.txt double.txt
    
  3. or download this
    <?php
    
    ...
        "single quotes" => create_function('', 'return \'foo\';'),
        "double quotes" => create_function('', 'return "foo";'),
    ));