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:05
#146421 #146421
User since
2009-09-13
7016 Artikel
BenutzerIn

user image
2011-03-12T15:58:19 pq
mit welcher perl-version bekommst du diese warnung?

Strawberry 5.10.1

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
#!/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;
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.
ja GwenDragon

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

Copyright 1987-2009, Larry Wall
[GEKÜRZT...]
10 print "Hallo"
20 goto 10

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