Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Splitting in while loop

by AnomalousMonk (Bishop)
on Oct 07, 2021 at 07:44 UTC ( #11137293=note: print w/replies, xml ) Need Help??


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:  <%-{-{-{-<

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11137293]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2022-01-25 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (67 votes). Check out past polls.

    Notices?