in reply to Re: problems passing variables between subroutine
in thread problems passing variables between subroutines
Update:sub create_output (\@$) { my ($arrayref_of_lines, $entry_no_new) = @_; my @array_of_lines = @$arrayref_of_lines; print "Hi there\n"; print "@array_of_lines"; # THIS IS NOT PRINTING ANYTHING exit;
When the following is used:Use of uninitialized value $_[1] in join or string at receive_annotati +ons_B.pl line 162.
sub create_output (\@$) { my ($arrayref_of_lines, $entry_no_new) = @_; # THIS DOES NOT WO +RK my @array_of_lines = @$arrayref_of_lines; print "Hi there\n"; print "@_"; print "@array_of_lines"; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: problems passing variables between subroutine
by CountZero (Bishop) on Sep 05, 2012 at 13:37 UTC |