irah has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

When I run the following snippet, I got the output as,56555.

#!/usr/bin/perl use strict; use warnings; $a=5; printf("%d%d%d%d%d\n",$a++,$a--,++$a,--$a,$a);

In "perlop" man page, I read, there is no associative for '++' and '--' operator. I confused how this program working or executing?. When I run the same program in C, I got, 45555. Please explain how it is working?

Also I have a doubt "If the operator don't have any associative, how Perl will do that operation?."

Is there any side effect If I use same kind of operations?