Actually tr is already used, it's the built-in
tr///, hence the CGI methid/function is Tr,
something that trips everyone (and you!) at least once.
Update: Aaaarrrghhh! merlyn is right (see below)
I always use the function version, and I have been bitten
(several times, I'm a slow learner ;--( by it, so I got
a little too paranoid. All my apologies to masem.
RE-Update: after further testing, my first version was right,
it _is_ Tr, whether using the function or the method.
merlyn is wrong there.
Re-Re-Update: as the rep of this node
go down and the one of merlyn's go up I guess I have to
prove my point, so try this and then change Tr
to tr ;--)
perl -e 'use CGI; my $q= new CGI; print $q->Tr, "\n";'
Other upper-cased function/methods are: Select,
Link, Delete, Accept and Sub.
| [reply] [d/l] |
| [reply] [d/l] [select] |
Actually Tr should be uppercase. I just had a
typo in one line: I had written $query-Tr
instead of $query->Tr. The error message in
error.log wonders me though... | [reply] [d/l] [select] |