Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 chanting in the Monastery: (4)
As of 2016-07-01 00:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (405 votes). Check out past polls.