Hi Monks,
I am running 5.10.0 (on Mac Os), and I get a weird behavior. I wan't able to find any explanation so far, and I am quite puzzled. Before I file a bug report, I would like to seek your immense wisdom.
The following works fine :
If I simply add the use line, as below, I get a syntax error :#!/usr/bin/perl default(); sub default { }
#!/usr/bin/perl use 5.10.0; default(); sub default { }
syntax error at t.pl line 5, near "default("
Of course the problem doesn't appear if I use 'foo' instead of 'default', and disappears if I use the & sign: &default().
However, I find this puzzling, since in all cases I run the same version (5.10.0), and as far as I can tell "default" is not mentioned as a reserved keyword or anything (but may have overlooked some explanation in the quite voluminous doc). I hope this has not been asked before, but, as you will understand, SuperSearch with keywords sush as "default" and "use" is a bit tricky, and couldn't find anything there either.
Thanks in advance for your help.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |