in reply to Re^2: basic openssh connectivity
in thread basic openssh connectivity

Thanks choroba I figured it was a global, but didn't think that it would have been defined since no regexp match was attempted. I would have expected to get an error when Perl tried to interpolate it as it was not defined.


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^4: basic openssh connectivity
by choroba (Cardinal) on Jul 26, 2019 at 13:50 UTC
    An array can't be "not defined", it's just empty.
    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

      Yes. What I meant was that I did not expect the scalar $10 to have been defined and thus that the array would not exist.

      $ perl -Mstrict -E 'say $10 ? 1 : 0; say "foo@10bar"' 0 foobar


      The way forward always starts with a minimal test.