Perl is a great, usable language, that is worth learning. This website should convince you: small, but practical code examples are provided, whether or not with comprehensive annotations. To mention some Pros:
(3) Example:$concat = $a.$b; $concat = "$a$b"; $concat = join ", $a, $b; $concat = sprintf("%s%s",$a,$b); $concat =~ s/.*/$a$b/s;
With the 'store' and 'retrieve' function multiple data structures can be saved and loaded at once very quickly.$rec -> {"id"} -> {"$tag1"} -> [$nr1] -> {"$tag2"} -> [$nr2]
andstore([$rec, \%Even, \%Tag1, \%Tag2, \%Tags, \%Stat], "Filename");
In this example, apart from the main structure $rec, the additional 5 hashes %Even, %Tag1, %Tag2, %Tags, and %Stat are also saved in the file. However, you may have fewer or more hashes.$arr = retrieve("Filename"); %{$rec} = %{$arr -> [0]}; %Even = %{$arr -> [1]}; %Tag1 = %{$arr -> [2]}; %Tag2 = %{$arr -> [3]}; %Tags = %{$arr -> [4]}; %Stat = %{$arr -> [5]};