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