Help for this page

Select Code to Download


  1. or download this
     
      my $x = \" VERY VERY BIG STRING .....";
      my $len = length( $$x );
    
  2. or download this
         sub foo { my $s = shift; my $r = \$s; print "FOO ($r)\n" } 
         my $X = "SOMESTRING"; 
    ...
         my $R = \$X; 
         print "NOTFOO ($R,$O)\n";                                        
    +   
         foo( $$R );
    
  3. or download this
    NOTFOO (SCALAR(0x9393f8),SCALAR(0x9393f8))
    FOO (SCALAR(0x9394a0))
    
  4. or download this
         sub foo { my $r = \$_[0]; print "FOO ($r)\n" } 
         my $X = "SOMESTRING"; 
    ...
         my $R = \$X; 
         print "NOTFOO ($R,$O)\n";                                        
    +   
         foo( $$R );
    
  5. or download this
    NOTFOO (SCALAR(0x1ac23e8),SCALAR(0x1ac23e8))
    FOO (SCALAR(0x1ac23e8))