Untitled
Anonymous
plain_text
03/03/2022 12:45 PM
312 B
24
Indexable
my %hash;
foreach my $line ( <STDIN> ) {
chomp( $line );
my @tokens = split('=', $line);
# split string by '='
$hash{$tokens[0]} = $tokens[1]
}
foreach $key (sort keys %hash){
print"$key=", $hash{$key}, "\n";
}Editor is loading...