Help for this page

Select Code to Download


  1. or download this
    sub foo {
      my ($aChars, $ch) = @_;
    ...
    my @aChars =('a','b','c','d');
    print "c=", findChar(\@aChars, 'c'), "\n";
    # outputs c=2
    
  2. or download this
    my $k='c';
    my $i=0;
    ...
    
    print "$k=$i\n";
    #also outputs c=2