Link to home
Start Free TrialLog in
Avatar of lucavilla
lucavillaFlag for Italy

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
SOLUTION
Avatar of morristhebear
morristhebear
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Oh, silly me.  Change the 100000 to 1000000.  I used 100000 for testing.
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lucavilla

ASKER

Wow, I love the simplicity of Perl! :)
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!