Recently I made a mistake in my code: I wrote $0 instead of $_ within a
niceslice construction, something like
foreach(0..$N){... $x=$y(($0)); ...}
instead of
foreach(0..$N){... $x=$y(($_)); ...}
$0 is a string with the name of the program, while $_ was a number. I
realized the error as the results I obtained were absurd, but I got no
error message. I was running with the 'strict' and 'warnings' pragmas,
but maybe that is irrelevant as niceslice runs as a filter, as far as
I understand. It seems that any extraneous string is interpreted as
the number 0. On the other hand, slice does print an error message if
I pass a meaningless string as an argument. Is it possible to emit
the corresponding diagnostics when using NiceSlice?
Best regards,
Luis
--
o
W. Luis Mochán, | tel:(52)(777)329-1734 /<(*)
Instituto de Ciencias Físicas, UNAM | fax:(52)(777)317-5388 `>/ /\
Apdo. Postal 48-3, 62251 | (*)/\/ \
Cuernavaca, Morelos, México | [email protected] /\_/\__/
GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16 C2DF 5F0A C52B 791E B9EB
------------------------------------------------------------------------------
_______________________________________________
pdl-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-general