1 # Copyright 2002-2007 Interchange Development Group and others
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version. See the LICENSE file for details.
8 # $Id: assign.coretag,v 1.5 2007-03-30 23:40:49 pajamian Exp $
10 UserTag assign addAttr
11 UserTag assign PosNumber 0
12 UserTag assign Version $Revision: 1.5 $
13 UserTag assign Routine <<EOR
14 my %_assignable = (qw/
24 delete $Vend::Session->{assigned};
27 $Vend::Session->{assigned} ||= {};
29 next unless $_assignable{$_};
30 my $value = $opt->{$_};
33 if($value =~ /^-?\d+\.?\d*$/) {
34 $Vend::Session->{assigned}{$_} = $value;
39 "Attempted assign of non-numeric '%s' to %s. Deleted.",
44 delete $Vend::Session->{assigned}{$_};