I cut my teeth on APL and used to spend hours shaving 7 or 8 bytes from the size of 360 assembly language programs, so I do have an appreciation for efficient and elegant coding solutions.
However... several decades later and who-knows-how-many brain cells fewer, I've found that I spend less time looking up function names and fixing typos using code like: my $custom_field = get_custom("SomeField"); and set_custom("SomeField", $my_val); ### I've also developed a new appreciation for comment lines in my old age. :) Gene At 10:13 AM 3/27/2008, Huw Selley wrote: >On 27 Mar 2008, at 16:57, Stephen Turner wrote: > > > > Please don't Huw, this has been very entertaining ;) > >:) > > > How about just > > > > return $Ticket->FirstCustomFieldValue($_[0]); > > > > > > or even no subroutine - just use $Ticket->FirstCustomFieldValue($_[0]) > >If you want to ditch the sub $_[0] will always be undef as there will >be no @_ (because it's no longer a sub) :) >In that case (to use it as a one liner) just: > >my $custom_field = $Ticket->FirstCustomFieldValue('SomeField'); > >Huw -- Gene LeDuc, GSEC Security Analyst San Diego State University _______________________________________________ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [EMAIL PROTECTED] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com