adding getScratch
This commit is contained in:
parent
d1c319bdb1
commit
c60613ac2c
2 changed files with 23 additions and 0 deletions
|
|
@ -296,6 +296,27 @@ sub end {
|
|||
}
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 getScratch ( varName )
|
||||
|
||||
Retrieves the current value of a scratch variable.
|
||||
|
||||
=over
|
||||
|
||||
=item varName
|
||||
|
||||
The name of the variable set with setScratch().
|
||||
|
||||
=back
|
||||
|
||||
=cut
|
||||
|
||||
sub getScratch {
|
||||
my $var = shift;
|
||||
return $session{scratch}{$var};
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 open ( webguiRoot [ , configFile ] )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue