lucavilla
asked on
generating number sequence in Perl or PHP
How do I create a file with a million(-1) of lines like these in Perl or PHP?
pippo000001
pippo000002
pippo000003
pippo000004
pippo000005
pippo000006
pippo000007
pippo000008
pippo000009
pippo000010
pippo000011
pippo000012
pippo000013
...
pippo999999
pippo000001
pippo000002
pippo000003
pippo000004
pippo000005
pippo000006
pippo000007
pippo000008
pippo000009
pippo000010
pippo000011
pippo000012
pippo000013
...
pippo999999
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Oh, silly me. Change the 100000 to 1000000. I used 100000 for testing.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Wow, I love the simplicity of Perl! :)
ASKER
I posted a new similar question here: https://www.experts-exchange.com/questions/23512022/generating-number-sequence-in-Perl-or-PHP.html
Thanks again for your help!
Thanks again for your help!