Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: First JAPH - Spell perl in two hundred and eighty five thousand and seventy four easy steps

by kiat (Vicar)
on Jan 12, 2002 at 16:46 UTC ( #138262=note: print w/replies, xml ) Need Help??


in reply to Re: First JAPH - Spell perl in two hundred and eighty five thousand and seventy four easy steps
in thread First JAPH - Spell perl in two hundred and eighty five thousand and seventy four easy steps

hi pokemonk;

In order to get an idea of how the word 'perl' gets printed, you may want to modify the code as follows:

#!c:\perl\perl.exe -w use strict; my $A="a";for(0..285074){$A++; print"$A";}
That is, you place the 'print "$A"' statement inside the loop. To see what what happens when, say, 1000 characters are printed, you stop the loop by pressing Ctr 'C' (if you're using Windows).

kiat
  • Comment on Re: Re: First JAPH - Spell perl in two hundred and eighty five thousand and seventy four easy steps
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2016-08-30 16:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (419 votes). Check out past polls.