in reply to Re: Unique ID Generator
in thread Unique ID Generator
Hey Masem... I tried this out... Can you look at this and see where I went wrong??
$id = 0; while ($id < 50) { print "Position ID: $positionid<br />\n"; my $positionid = sprintf( "REG-RC-%04d", $id++ ); }
This is what it printed:
Position ID: REG-RC-0000
Position ID: REG-RC-0000
Position ID: REG-RC-0000
Position ID: REG-RC-0000
Position ID: REG-RC-0000
.....
Did that 50 times...
Any Suggestions??
Billy S.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Unique ID Generator
by Masem (Monsignor) on Aug 23, 2001 at 19:00 UTC | |
by LostS (Friar) on Aug 23, 2001 at 19:09 UTC | |
|
Re: Re: Re: Unique ID Generator
by isotope (Deacon) on Aug 23, 2001 at 19:33 UTC | |
|
Re: Re: Re: Unique ID Generator
by LostS (Friar) on Aug 23, 2001 at 18:57 UTC |