Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: Challenge from my Fridge

by Rhose (Priest)
on Mar 10, 2003 at 21:27 UTC ( #241843=note: print w/ replies, xml ) Need Help??


in reply to Re: Challenge from my Fridge
in thread Challenge from my Fridge

Ok, so once again I find myself killing a few minutes working with someone else's code. *Smiles*

I went ahead and overrode chomp to make it chomp the flock.

#!/usr/bin/perl -w use strict; use subs qw(chomp flock); my @gFlock=(1..10); sub chomp { pop @gFlock; } sub the { 'My flock is: ',shift,"\n"; } sub flock { join(' ',@gFlock); } while (flock) { print the flock; chomp the flock; }


Comment on Re: Re: Challenge from my Fridge
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://241843]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (20)
As of 2015-07-02 13:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (40 votes), past polls