Wagner, David --- Senior Programmer Analyst --- WGO
<[EMAIL PROTECTED]> wrote:
: 
: Meneses, Alden wrote:
: > I must be doing something wrong with this script....
: > 
: > my $pcname = 'ACME0001';
: > while ( $pcname < 5 ) {
:       I believe it has to do the arithmetic < which is making 
: ACME0001 into 0 which then gets added to 0.
: 
: This is the code I used to verify it would work as stated:
: my $MyIds = 'ACME0001';
: for(my $MyId=0;$MyId<1300;$MyId++) {
:     printf "%s\n", $MyIds++;
:  }

    Hmmm,

{
    local $\ = "\n";
    print foreach 'ACME0001' .. 'ACME1300';
}


HTH,

Charles K. Clarkson
-- 
Mobile Homes Specialist
254 968-8328


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to