Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: OT:perl variable question

Re: OT:perl variable question

From: Jared Still <jkstill_at_gmail.com>
Date: Tue, 23 Nov 2004 17:27:02 -0800
Message-ID: <bf463804112317271979edc4@mail.gmail.com>


On Tue, 23 Nov 2004 10:46:17 -0600, Greg Norris <spikey.mcmarbles_at_gmail.com> wrote:
> Here's a quick-n-dirty padding function I've used in the past.
>
> sub lpad {
> return($_[1] x ($_[2] - length($_[0])) . $_[0]);
> }
>

The 'return' is redundant. ;)

-- 
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist
--
http://www.freelists.org/webpage/oracle-l
Received on Tue Nov 23 2004 - 21:44:04 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US