#!/usr/bin/perl use constant TEST => 1; use constant TEST => 2; print("TEST: " . TEST . "\n");
Constant subroutine main::TEST redefined at /usr/lib/perl5/5.8.0/constant.pm line 108. TEST: 2
Now I know the reason for the error, but is there a way to suppress this particular error message? i.e. what if I had a valid reason for doing this?
Thanks,
Paul
In reply to Constant redefined by paulski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |