I guess you want something like this…
sub fLoadModules { my ($modules) = @_; my @stuff_to_return; open my $fh, "<", $modules or die "Couldn't open module file: $mod +ules"; while(<$fh>) { chomp; my ($module_id) = split /;/; print Dumper($module_id); push @stuff_to_return, $module_id; } close $fh; return @stuff_to_return; }
In reply to Re: Perl variable scoping between functions
by tobyink
in thread Perl variable scoping between functions
by Bryan882
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |