Thread Use of implicit split to @_ is deprecated umgehen (14 answers)
Opened by bianca at 2011-03-12 15:59

bianca
 2011-03-12 17:09
#146423 #146423
User since
2009-09-13
7016 Artikel
BenutzerIn

user image
2011-03-12T15:42:25 FtR
Code (perl): (dl )
print "ja" if  (scalar(split(",",$feld7)) > 1);


Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/perl -w
use strict;
use warnings;

my $feld7 = '3,';
print "ja\n" if @{[split /,/,$feld7]} > 1;
print "ja GwenDragon\n" if ($feld7 =~ tr/,//);
print "ja fuer pq was mir als die einfachste Loesung erscheint aber warnt\n" if split (/,/,$feld7) > 1;
print "ja fuer FtR, der/die glaubt, ich haette nicht alles versucht\n" if (scalar(split(",",$feld7)) > 1);
system("perl -v");


Code: (dl )
1
2
3
4
5
6
7
8
>perl test.pl
Use of implicit split to @_ is deprecated at test.pl line 8.
Use of implicit split to @_ is deprecated at test.pl line 9.
ja GwenDragon

This is perl, v5.10.1 (*) built for MSWin32-x86-multi-thread

Copyright 1987-2009, Larry Wall
10 print "Hallo"
20 goto 10

View full thread Use of implicit split to @_ is deprecated umgehen