[rt-devel] Re: My first code contribution : approvals

Autrijus Tang autrijus at autrijus.org
Sun Mar 23 19:16:37 EST 2003


On Sun, Mar 23, 2003 at 04:42:52PM -0500, Jesse Vincent wrote:
> >>   +        if ($ticket->Type =~ /pproval/) {
> 	      if ($ticket->Type =~ /^approval$/i) { 
> 	is the case-insensitive version of all that.

Not to nitpick, but I'll prolly write it as

	      if (lc($ticket->Type) eq 'approval') {

but really, I don't see the point of case insensitiveness...

Thanks,
/Autrijus/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://pallas.eruditorum.org/pipermail/rt-devel/attachments/20030324/80ba6d9b/attachment.pgp


More information about the Rt-devel mailing list