in reply to Re^2: POE - can't increment within sub
in thread POE - can't increment within sub
I feel like an idiot...I didn't read over your answer carefully enough until now. I tried it with the () around the variable name and it worked correctly!!!
Is there a way for me to use an if/else statement in this context? I want the numbers to start back at "00001" after it reaches "99999" but doing something like this:
my $sequence_number = "00001"; if (($sequence_number)++ gt "99999") { $sequence_number = "00001"; } else { ($sequence_number)++; }
Doesn't appear to work.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: POE - can't increment within sub
by Athanasius (Archbishop) on Dec 13, 2015 at 04:10 UTC | |
|
Re^4: POE - can't increment within sub
by AnomalousMonk (Archbishop) on Dec 13, 2015 at 04:11 UTC | |
by Athanasius (Archbishop) on Dec 13, 2015 at 04:27 UTC |