Help for this page

Select Code to Download


  1. or download this
    my @files = ('tab1.txt','tab2.txt');
    
    ...
    # which lets you omit the quotes and the comma:
    
    my @files = qw( tab1.txt tab2.txt );
    
  2. or download this
        my $hash_key =~ s/\.txt//; # generate hash key
    
  3. or download this
    Use of uninitialized value in substitution (s///) at merge.pl line 16.
    
  4. or download this
        (my $hash_key = $file) =~ s/\.txt//; # generate hash key
    
  5. or download this
    $ptables{$hash_key} = [ @string_array ]; # save all strings to the has
    +h
    print Dumper(\%ptables);                 # use "\" to pass reference o
    +f hash