in reply to The weirdest problem with undef

... and if you try with:
for my $mode (@probe_modes) {
   local (@source,@destination);
   create_map_file $mode;
   get_elements; # @source and @destination are filled here
   scan_matrix $mode;
   @source =();
   @destination =();
}

Replies are listed 'Best First'.
Re^2: The weirdest problem with undef
by insaniac (Friar) on Dec 22, 2004 at 15:39 UTC
    :-D you're about to be spanked! read previous replies above...
    --
    to ask a question is a moment of shame
    to remain ignorant is a lifelong shame
Re^2: The weirdest problem with undef
by blazar (Canon) on Jun 28, 2005 at 10:15 UTC
    Which is a quick hack the OP indeed had already found himself. Still it is nothing but byzantine logic to avoid what parameter passing is exactly for.

    Ciao ciao!