arguments for subroutine in Perl
2013-12-02 17:15
204 查看
Perl automatically stores the paremeter list in the special array variable named @_ for the duration of the subroutine. The subroutines can get the number of arguments and the value of those arguments. $_[0], $_[1] ...., they
are different from $_ (almost used in foreach circulation), the former one is array and the last one is scalar.
my $arguments; #private variables
are different from $_ (almost used in foreach circulation), the former one is array and the last one is scalar.
my $arguments; #private variables
相关文章推荐
- Subroutine in Perl
- The method setStatus(int) in the type Goods is not applicable for the arguments (Integer)
- missing arguments for method toArray in trait Collection
- LWP(Library for WWW in Perl)的基本使用
- 个人收藏 Totals and Subtotals in ALV Web Dynpro (Web Dynpro for ABAP)
- Error Code: 1414. OUT or INOUT argument 2 for routine company.new_procedure is not a variable or NEW
- The method setClass(Context, Class<?>) in the type Intent is not applicable for the arguments (GameV
- LWP(Library for WWW in Perl)的基本使用
- Install DBD::mysql for Perl in XAMPP in Mac , solving errors
- Two things need to note for unpack in Perl
- The method setValue(String) in the type ParamTag is not applicable for the arguments (long)
- The method setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.Builder is not applicable for the arguments
- The method setBackground(Drawable) in the type View is not applicable for the arguments (int)
- The method load(Class, Serializable) in the type Session is not applicable for the arguments (Class<
- 执行perl时出现Undefined subroutine
- The method sendKeys(CharSequence[]) in the type WebElement is not applicable for the arguments (String)
- [真理永垂不朽]The method XXX in the type FragmentTransaction is not applicable for the arguments XXX
- Error Code: 1414. OUT or INOUT argument 2 for routine company.new_procedure is not a variable or NEW
- The method setClass(Context, Class<?>) in the type Intent is not applicable for the arguments (GameV
- Error Code: 1414. OUT or INOUT argument 2 for routine company.new_procedure is not a variable or NEW