CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [cupofdoug] Appending to the end of a line from an input file: Edit Log



FishMonger
Veteran / Moderator

Apr 15, 2013, 7:57 AM


Views: 1224
Re: [cupofdoug] Appending to the end of a line from an input file


Code
foreach my $num ( qw(22 4444 666666)) { 
my $zeros = ('0') x (6 - length($num));
say "$num $zeros";
}



(This post was edited by FishMonger on Apr 15, 2013, 7:58 AM)


Edit Log:
Post edited by FishMonger (Veteran) on Apr 15, 2013, 7:58 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives