= '.';"?

This question already has an answer here:

  • Why doesn't ||= work with arrays? 2 answers

  • It's impossible for the code @ARGV to both return the array itself and the number of elements in it, so @ARGV ||= '.'; makes no sense. You need to evaluate @ARGV twice, once in scalar context (to get the number of elements), and once as an lvalue (to get the array itself).

     @ARGV = @ARGV || '.';
    
    链接地址: http://www.djcxy.com/p/71764.html

    上一篇: 如何重定向到ASP.NET MVC中的动态登录URL

    下一篇: ='。';“?