in reply to Re-calling in a list of variables into different .pl's
I'm not entirely sure what you're asking for, but I suspect you can benefit from array slices:
sub call_variables { my $spec_vars = param('spec_vars'); return (split /~/, $spec_vars)[0,1,2,3,4]; }
----
I wanted to explore how Perl's closures can be
manipulated, and ended up creating an object
system by accident. -- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
|
|---|