Help for this page

Select Code to Download


  1. or download this
    $ perl -MO=Deparse -e 'foo(\my $bar)'
    foo \my($bar);
    ...
    my $bar;
    foo \$bar;
    -e syntax OK
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    $bar2 = 2;
    
    print Data::Dumper->Dump([\%hash1,\%hash2], [qw(*hash1 *hash2)]);
    
  3. or download this
    my $ref = \my $foo;
    printf  $ref eq \$foo ? "Same address\n" : "Not same address\n";
    ...
    my @array = \my ($this, $that);
    $this = "Ovid";
    print Data::Dumper->Dump([\@array,$this,$that], [qw(*array *this *that
    +)]);