in reply to Re: Use of uninitialized value $_ in pattern match (m//)
in thread Use of uninitialized value $_ in pattern match (m//)

For that matter, initialize

my @net_configs = ();

Replies are listed 'Best First'.
Re^3: Use of uninitialized value $_ in pattern match (m//)
by AnomalousMonk (Archbishop) on Mar 09, 2016 at 18:24 UTC
    ... initialize my @net_configs = ();

    Why? What would  @net_configs look like if one were to depend on the default initialization of a newly-created lexical array?


    Give a man a fish:  <%-{-{-{-<