yangyu has asked for the wisdom of the Perl Monks concerning the following question:
result from run at windows:#!/usr/bin/perl @a=(9,2,3,4); @b=("a","b"); func(\@a,\@b); sub func { ($c,$d) = @_; print $#{@$c}+1,$#{@$d}+1; }
result from run at unix:C:\pl>perl array_argument_testing.pl 00
The result from unix is what I want,but what's the problem that the result is different from windows?$ perl array_argument_testing.pl 42
thanks for your help
YangYu
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: same code,run at windows and unix separately,the result is different
by ikegami (Patriarch) on Jun 10, 2009 at 05:21 UTC | |
|
Re: same code,run at windows and unix separately,the result is different
by syphilis (Archbishop) on Jun 10, 2009 at 05:25 UTC | |
by ikegami (Patriarch) on Jun 10, 2009 at 05:34 UTC | |
by syphilis (Archbishop) on Jun 10, 2009 at 06:26 UTC | |
by ikegami (Patriarch) on Jun 10, 2009 at 13:26 UTC | |
by Anonymous Monk on Jun 10, 2009 at 08:38 UTC |