jw47 has asked for the wisdom of the Perl Monks concerning the following question:
#! /usr/bin/perl # perltest Demo of problem # Usage: # perltest # perltest 1 # perltest 1 2 $ARG1 = shift(); $ARG2 = shift(); open(F,$0); $c = 0; map { print "TRACE $_"; $c++; my @a = (1); my @b = @a[1..0]; if ( $ARG1 and $ARG2 ) { $N = @a[1..0]; } elsif ( $ARG1 ) { $N = @b; } } <F>; close(F); print "\nCOUNT = $c N = /$N/\n"; exit 0; #WATCH FOR THIS LINE!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Assignment changes handle?
by CountOrlok (Friar) on Mar 04, 2005 at 19:28 UTC | |
by Mugatu (Monk) on Mar 04, 2005 at 20:26 UTC | |
|
Re: Assignment changes handle?
by moot (Chaplain) on Mar 04, 2005 at 16:23 UTC | |
by Mugatu (Monk) on Mar 04, 2005 at 20:27 UTC | |
by moot (Chaplain) on Mar 04, 2005 at 20:41 UTC | |
|
Re: Assignment changes handle?
by ikegami (Patriarch) on Mar 04, 2005 at 17:04 UTC | |
|
Re: Assignment changes handle?
by osunderdog (Deacon) on Mar 04, 2005 at 17:34 UTC |