in reply to Re: syntax error with constant
in thread syntax error with constant
I think the parser is reallly straightforward in this respect: known -X filetest operators will give the error, unknown ones will give the warning. Nothing to do with upper case of lower case: -a works but gives the warning even though lowercase, whereas -T will give the compile error.
perldoc -f -X lists the following uppercase filetest operators:
-T File is an ASCII text file (heuristic guess). -B File is a "binary" file (opposite of -T). -M Script start time minus file modification time, in days. -A Same for access time. -C Same for inode change time (Unix, may differ for other platforms)so don't call your constants T, B, M, A or C ;-).
Liz
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: syntax error with constant
by TomDLux (Vicar) on Aug 04, 2003 at 01:08 UTC | |
by liz (Monsignor) on Aug 04, 2003 at 07:30 UTC | |
by sgifford (Prior) on Aug 04, 2003 at 06:56 UTC |