[ic] Delete a bunch of scratch variables

Peter peter at pajamian.dhs.org
Sun Jun 19 19:31:59 UTC 2011

On 20/06/11 05:55, Rick Bragg wrote:
> I need a way to simple delete all the "product_[scratch
> item_sku]_position" variables at once, but I don't know what the
> [scratch item_sku]'s are or how many of there there might be.Basically
> something like a wild card such as:
> [calc]$Scratch->{product_*_position} = ''; return; [/calc]

	delete @{$Scratch}{grep { /^product_.*_position$/ } keys %$Scratch};


More information about the interchange-users mailing list