[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Re: [Omaha.pm] Golf my program :)
To
: "Perl Mongers of Omaha, Nebraska USA" <
omaha-pm@pm.org
>
Subject
: Re: [Omaha.pm] Golf my program :)
From
: Andy Lester <
andy@petdance.com
>
Date
: Thu, 24 May 2012 09:55:23 -0500
Delivered-to
:
mailman-omaha-pm@mailman.pm.dev
Delivered-to
:
omaha-pm@pm.org
In-reply-to
: <
56F3A8A0-C407-4504-9748-882038AE041F@iinteractive.com
>
List-archive
: <
http://mail.pm.org/pipermail/omaha-pm
>
List-help
: <
mailto:omaha-pm-request@pm.org?subject=help
>
List-id
: "Perl Mongers of Omaha, Nebraska USA" <omaha-pm.pm.org>
List-post
: <
mailto:omaha-pm@pm.org
>
List-subscribe
: <
http://mail.pm.org/mailman/listinfo/omaha-pm
>, <
mailto:omaha-pm-request@pm.org?subject=subscribe
>
List-unsubscribe
: <
http://mail.pm.org/mailman/options/omaha-pm
>, <
mailto:omaha-pm-request@pm.org?subject=unsubscribe
>
References
: <
56F3A8A0-C407-4504-9748-882038AE041F@iinteractive.com
>
Reply-to
: "Perl Mongers of Omaha, Nebraska USA" <
omaha-pm@pm.org
>
On May 24, 2012, at 9:52 AM, Jay Hannah wrote:
Suggestions to improve this little program I just wrote?
chomp;
Use -l on the shebang to do autochomping. You'll also be able to get rid of the "\n" in your printf.
my @line = split /\t/;
Use -a and -F on the shebang to do the split for you automaticaly.
xoa
--
Andy Lester =>
andy@petdance.com
=>
www.petdance.com
=>
AIM:petdance
References
:
[Omaha.pm] Golf my program :)
From:
Jay Hannah <jay.hannah@iinteractive.com>
Prev by Date:
[Omaha.pm] Golf my program :)
Next by Date:
Re: [Omaha.pm] [odynug] Meeting MOVED: June 5 AT COVIS COWORKING
Previous by thread:
[Omaha.pm] Golf my program :)
Next by thread:
[Omaha.pm] $ perl -de 'BEGIN {@DB::typeahead=("V main","q")}; 1'
Index(es):
Date
Thread