Help for this page

Select Code to Download


  1. or download this
    $#data ++
    
  2. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    for my $d (@data) {
            print "$d\n";
    }
    
  3. or download this
    Modification of non-creatable array value attempted, subscript -1
    
  4. or download this
    my @data;
    $data[-1] = 2;