Thread Split-delimiters -> " " und "" und // und / / (19 answers)
Opened by Student87 at 2012-11-21 15:10

bianca
 2012-11-21 15:31
#163489 #163489
User since
2009-09-13
6977 Artikel
BenutzerIn

user image
2012-11-21T14:29:52 Student87
Code (perl): (dl )
perl -e '$blub="a b   c"; @blub=split(/" "/,$blub); foreach(@blub) {$c++; print "$c $_\n"}'


produziert bei mir

1 a b c

Ist aber auch wie gesagt Perl 8.8 ... ?

Wohl eher 5.8.8, oder?
Bei mir mit Strawberry 5.10.1 das hier:
Quote
Can't find string terminator "'" anywhere before EOF at -e line 1.
10 print "Hallo"
20 goto 10

View full thread Split-delimiters -> " " und "" und // und / /