X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FSessionFile%2FRandom.pm;h=6a1800ef115e8f08053aa1763d7ec4609359281e;hb=47db6ae13df64092d401896ec476b9335e9ec807;hp=366baf4399108eecf964b4c817671cff143b1c9c;hpb=4fc07be473b8e80e5c808d2876762383f660aa25;p=kivitendo-erp.git diff --git a/SL/SessionFile/Random.pm b/SL/SessionFile/Random.pm index 366baf439..6a1800ef1 100644 --- a/SL/SessionFile/Random.pm +++ b/SL/SessionFile/Random.pm @@ -37,19 +37,20 @@ SL::SessionFile::Random - SessionFile with a random name use SL::SessionFile::Random; - # Create a session file named "customer.csv" (relative names only) - my $sfile = SL::SessionFile::Random->new("w"); + # Create a session file with a unique random name + my $sfile = SL::SessionFile::Random->new(mode => "w"); $sfile->fh->print("col1;col2;col3\n" . "value1;value2;value3\n"); $sfile->fh->close; =head1 DESCRIPTION -This modules gives you a random file in the current session cache that is guaranteed to be unique +This modules gives you a random file in the current session cache that is +guaranteed to be unique. =head1 FUNCTIONS -same as SL::SessioNFile +same as SL::SessionFile =head1 BUGS