Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: wrong in minus

by Tux (Canon)
on May 10, 2018 at 17:16 UTC ( [id://1214341]=note: print w/replies, xml ) Need Help??


in reply to Re: wrong in minus
in thread wrong in minus

And the use strict; use warnings; advice would have given you an indication:

$ perl -wE'my $item1="x\t\ty";my@tmp1=split(/t+\,$item1/);' Use of uninitialized value $_ in split at -e line 1. $ perl -wE'my $item1="x\t\ty";my@tmp=split(/t+/,$item1);say for@tmp' x y $ perl -wE'my $item1="x\t\ty";my@tmp=split(/\t+/,$item1);say for@tmp' x y

Enjoy, Have FUN! H.Merijn

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-25 16:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found