-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Paul,
with this line : map("substr(\"\$level{\$host}{\$disk}{'$_'}\",-2)", sort keys %dates)) it runs.
Thanks for your help and your explanations.
Paul Bijnens wrote: | Christian Molière wrote: | |> I tried in using your code line but it doesn't |> run with this error message : |> syntax error at (eval 4) line 3, near "}," | | | Of course, substr should have been inside the quotes. | Like this: | | map("substr(\$level{\$host}{\$disk}{'$_'},-2)", sort keys %dates)) ... | | | Giving this block: | | 152 my $out_format = "format STDOUT =\n" . | 153 "@" . "<" x ($opt_hostwidth - 1) . ' ' . | 154 "@" . "<" x ($opt_diskwidth - 1) . ' ' . | 155 '@> ' x scalar(keys %dates) . "\n" . | 156 join(', ', '$host', '$disk', | 157 map("substr(\$level{\$host}{\$disk}{'$_'},-2)", sort keys | %dates)) . "\n" . | 158 ".\n"; | | Aoperently not enough cafeine yet when I wrote my previous mail :-) | Now I tested it out myself (but not having a 3-byte code in my overview | to really really verify if it works). |
- --
Cordialement, Sincerely,
Christian MOLIERE
Tél : 01.43.60.11.60
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAhlO1Z30NRCZKZ48RAlEDAKCYkFmy6205uWszjCXmz60jwgdAOwCeK8zZ 8YKe0w7GdajGUjO2osb0zEI= =JW6h -----END PGP SIGNATURE-----