in reply to want to create a variable whise value do not get change on recursion
This will printuse strict; my $temp = shift @ARGV || 0; print "call no. $temp\n"; if ( $temp < 10 ) { system ("rec.pl", $temp+1); }
call no. 0 call no. 1 call no. 2 call no. 3 call no. 4 call no. 5 call no. 6 call no. 7 call no. 8 call no. 9 call no. 10
|
|---|