Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Perl Golf Proposal

by cLive ;-) (Prior)
on May 23, 2001 at 06:06 UTC ( #82452=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub i{$_=<>;chop;if(/^\d{1,4}$/){return sprintf("%04d",$_)}print"!\n";
    +&i}$c=i;$d=i;for($c..$d){$_="bar$_.jpg";print"$_\n"unless(-e)}
    
  2. or download this
    sub i{$_=<>;chop;if(/^\d+$/&&$_<10000){return sprintf("%04d",$_)}print
    +"!\n";&i}$c=i;$d=i;for($c..$d){$_="bar$_.jpg";print"$_\n"unless(-e)}
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://82452]
help
Chatterbox?
[marto]: how do you stop the horses from drowning?
[Discipulus]: horses are lighter.. marto
[marto]: lol

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2017-07-21 11:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (321 votes). Check out past polls.