in reply to Get the string from the module

Module:

package testarvilt; use strict; use warnings; sub menskrivtillbaka { my $dininput = $_[0]; print $dininput, "\n"; my $dininput_len = length $dininput; return $dininput_len; } 1;

Main script:

use strict; use warnings; use testarvilt; my $result = testarvilt::menskrivtillbaka("Hejhej"); print $result, "\n";

Replies are listed 'Best First'.
Re^2: Get the string from the module
by bofinken (Initiate) on Nov 29, 2018 at 21:36 UTC
    May all good things come your way!
    Hooray!

    Thanks a lot!