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: [PapaGeek] Delete an array of hash references: Edit Log



Zhris
Enthusiast

Jun 23, 2014, 10:39 AM


Views: 2815
Re: [PapaGeek] Delete an array of hash references

A shortened version of your code as it stands, although takes away the good learning experience of constructing hashes and arrays ;):


Code
range_to_row( 6, 9 ); 
range_to_row( 1, 2 );

sub range_to_row
{
printf "acc %s\tABC%s\t%s\n", $_, $_, $_*5 for ( shift // 1 .. shift // 1 );
}


Chris


(This post was edited by Zhris on Jun 23, 2014, 10:43 AM)


Edit Log:
Post edited by Zhris (Enthusiast) on Jun 23, 2014, 10:42 AM
Post edited by Zhris (Enthusiast) on Jun 23, 2014, 10:43 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