[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to do? Possible?

From: Linda Walsh
Subject: How to do? Possible?
Date: Mon, 25 Jul 2011 02:20:32 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv: Gecko/20100228 Thunderbird/ Mnenhy/

I got great help in learning about how to do the  perl equiv of (var1,
var2, var3)= (list) using read var1 var2 var3 <<<(list).

I use it often to get back lists of values from subroutine calls, but with
sometimes useful, and sometimes hindering fact that when I do
read var1 var2 var3 <<<$(function x y z)

function's ability to affect the global env, is 'nixed',

is there something like a
read var1 var2 var3 <<<${function x y z), that would do the same, but
like {} in code, wouldn't put the contents in a sub proc?

I can think of uglier looking ways to get around it, but was hoping
for something more elegant.

Truth be told, I split a file that was growing too large that had a mix
of functions and calls to them, by putting the functions into a separate
lib but I'd like the lib to be a bit more general and keep it's own state
(shared with the parent or not, wouldn't matter in my design), but as the
function calls are called in the (), there seems to be no easy way to
export them to anything that will be shared

reply via email to

[Prev in Thread] Current Thread [Next in Thread]