Thread upload() im List Kontext geht nicht (8 answers)
Opened by Gast at 2008-09-17 21:25

Linuxer
 2008-09-20 19:17
#114816 #114816
User since
2006-01-27
3891 Artikel
HausmeisterIn

user image
Gast+2008-09-18 10:39:56--
und $self->param(undef) liefert ja alle parameter zurück.


Wer behauptet das?

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/perl -l
# vi:ts=4 sw=4 et:
use strict;
use warnings;
use CGI qw( :standard );


my @list = param( undef );

print "undef: @list";


@list = ();
@list = param();

print "empty: @list";


Test:
Code: (dl )
1
2
3
$ perl /tmp/cgi.pl a=1 b=2
undef:
empty: a b
meine Beiträge: I.d.R. alle Angaben ohne Gewähr und auf Linux abgestimmt!
Die Sprache heisst Perl, nicht PERL. - Bitte Crossposts als solche kenntlich machen!

View full thread upload() im List Kontext geht nicht