On Thursday 07 October 2010 21:20:19 jm wrote: > On Thu, Oct 7, 2010 at 1:22 PM, Shawn H Corey <shawnhco...@gmail.com> wrote: > > On 10-10-07 02:08 PM, jm wrote: > >> it works as intended but i was wondering if anyone can suggest > >> improvements in size and efficiency > > > > See `perldoc perlre` and search for /\\u/, /\\U/, /\\l/, and /\\L/. > > > > > > -- > > Just my 0.00000002 million dollars worth, > > Shawn > > > > Programming is as much about organization and communication > > as it is about coding. > > > > The secret to great software: Fail early & often. > > > > Eliminate software piracy: use only FLOSS. > > > > -- > > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > > For additional commands, e-mail: beginners-h...@perl.org > > http://learn.perl.org/ > > Shawn and John, > > thanks, your leads gave me this: > > ############################################# > #!/usr/bin/perl >
Add strict and warnings. > print &surname($ARGV[0]) . "\n"; Don't use leading-ampersand in subroutine calls. Also see: http://perl-begin.org/tutorials/bad-elements/ Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Funny Anti-Terrorism Story - http://shlom.in/enemy <rindolf> She's a hot chick. But she smokes. <go|dfish> She can smoke as long as she's smokin'. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/