Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- A. Farber
February 26, 2009, 10:25 am
rate this thread
I have a CGI-script for creating new users.
You can either upload a CSV file for a batch
of users or fill out a web for for just 1 user.
So I have a ref to array which contains
either lines from the uploaded CSV file or
just 1 line constructed from the web form:
my $input = $fh ? [ <$fh> ] :
# trick: create a line as if a Lotus Notes CSV-file has
[ sprintf '%s;%s;;;%s;XXX;%s;;;XXX;%s-%s;;%s%s.
($QUERY->param('company') =~ /^mycompany$/i ? '' :
($QUERY->param('inform') =~ /nobody/i ? '' : $QUERY-
my $loh = validate_input($input);
My problem above is that [ <$fh> ] seems
to be evaluated in a scalar context and
I get just 1 line instead of all.
Is there a nice way to force list context on it?
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum