Help for this page

Select Code to Download


  1. or download this
    I'm sorry I'm not good at English. :-)
    
    ...
    Before line 13, line 12 prints the intervening elements, treating
    undef as null string. Then why does line 13 make such error? Is it a
    bug? or...?
    
  2. or download this
    picard:~ [13:47:28]$ perl -le '$x[5]=5; $_*=10 for @x; print "@x"'
    0 0 0 0 0 50
    ...
    Modification of a read-only value attempted at -e line 1.
    picard:~ [13:47:36]$ perl -le '@x=0..5; $_*=10 for grep 1, @x; print "
    +@x"'
    0 10 20 30 40 50
    
  3. or download this
       my @array;
       $array[0] = 0;
       $array[9] = 9;
    
  4. or download this
        SV = NULL(0x0) at 0x182d528
          REFCNT = 1
          FLAGS = ()
    
  5. or download this
        SV = PVLV(0x18b3164) at 0x182d510
          REFCNT = 2
    ...
            Elt No. 1
            Elt No. 2
            Elt No. 3
    
  6. or download this
        SV = NULL(0x0) at 0x224b30
          REFCNT = 2147479514
          FLAGS = (READONLY)
    
  7. or download this
    picard:~ [13:53:28]$ cat inc.pl
    #!/usr/bin/perl -l
    ...
    picard:~ [13:53:31]$ ./inc.pl
    Use of uninitialized value in join or string at ./inc.pl line 11.
         667
    
  8. or download this
    picard:~ [14:15:22]$ cat inc.pl
    #!/usr/bin/perl
    ...
    SV = NULL(0x0) at 0x819ab20
      REFCNT = 1
      FLAGS = ()