Help for this page

Select Code to Download


  1. or download this
    sub conf2hash {
        my %argv = @_;
    ...
        close IN;
        return 1;
    }
    
  2. or download this
    THIS=that
    name=joe
    ...
    
    #this is a comment
    age=14
    
  3. or download this
    my @a = split(/$argv{splitchar}/,$_);
    #and then, place it into the hash....
    ${$argv{hashref}}{$a[0]}=$a[1];
    
  4. or download this
    split(/$argv{splitchar}/,$_);
    ${$argv{hashref}}{$_[0]}=$_[1];
    ...
    ( ${$argv{hashref}}{$_} = $_ )=  split(/$argv{splitchar}/,$_);  
    
    #is that totally making it up ?