in reply to Re: How can i "include" an executable section of code
in thread How can i "include" an executable section of code
and the $client.segment file contains$client = $Options{'c'}; # # call in the relevant client code # require "$client.segment"; #
sub DoClient { # client 'A' my $EURO = 1.35; if ( m/(\S+),(\S+),(\S+),(\S+),(\S+),(\S+)/o ) { @fields = split(/,/); ...... } }1;
|
|---|