in reply to Re: Action at a great distance
in thread Action at a great distance

Btw, this is superflous:
my @temp_args = @{[@args]};
You are making a copy of a copy of the original. Semantically it is the same as
my @temp_args = @args;

Makeshifts last the longest.

Replies are listed 'Best First'.
Re: Re^2: Action at a great distance
by stvn (Monsignor) on Mar 20, 2004 at 17:41 UTC
    Aristotle,

    Your right, I am making an assumption of a single level structure and that would be copied-by-value anyway. And considering that I do this:

        if (verify(@temp_args)) {         @args = @temp_args;     }     else {         die "callback did something funky to args";     }
    Then actually doing a proper deep-copy of @args would only make sense if you planned to catch the exception being thrown in the else block. Basically, my intention was to build a sandbox for the callbacks to run in with commit and rollback functionality. A real implementation would require much more knowledge of the data in @args and the functionality of the app as a whole.

    -stvn