On Fri, 6 Apr 2001, Phil Brammer wrote:

> Here's what I want to do (from a rookie):
> 
> for ($i=001; $i<501; $i++) {
>       print "$i\n";   #First time through should list '001' NOT '1'
>                               #Currently it just prints '1'
>                               #For this one particular purpose of mine, they
>                               #don't have to be techically numbers.  (Ultimately
>                               #I'm just passing a string composed of alphas & 
>numbers)
>                               #But I need to do it 500 times.
> }
> 
> How do I get around this in an easy way?  Thanks for your help!
>

Try:  for ($i='001';....

**** [EMAIL PROTECTED] <Carl Jolley>
**** All opinions are my own and not necessarily those of my employer ****

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to