in reply to Re^2: Returning data from a sub routine in a module.
in thread Returning data from a sub routine in a module.

I updated my post. The results() sub accepts a file name from the script, then it passes it to accounts() for processing, and then returns the results.

Replies are listed 'Best First'.
Re^4: Returning data from a sub routine in a module.
by Anonymous Monk on Apr 19, 2016 at 20:54 UTC
    The reason I posted was because I do not want to pass the my $file = "accounts.txt"; from the Perl script. I am trying to have it in the module:
    my $file = "test.txt"; my $accounts = account( file => $file, );