in reply to Re^2: Splitting in while loop
in thread Splitting in while loop
Further to jwkrahn's post: tel2: Note that implicit split to @_ has been deprecated for a long time:
Win8 Strawberry 5.8.9.5 (32) Thu 10/07/2021 3:29:50 C:\@Work\Perl\monks >perl -Mstrict -Mwarnings my $data = <<'EOD'; me@here.com those@there.com others@there.com you@there.com,them@there.com EOD open my $fh, '<', \$data or die "opening: $!"; while (split(/[, ]+/, <$fh>)) { chomp @_; print "'$_'\n" for @_; } ^Z Use of implicit split to @_ is deprecated at - line 14. 'me@here.com' 'those@there.com' 'others@there.com' 'you@there.com' 'them@there.com'
Give a man a fish: <%-{-{-{-<
|
---|
In Section
Seekers of Perl Wisdom