Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Leading empty array elements after splitting

by Anonymous Monk
on Aug 22, 2016 at 16:20 UTC ( [id://1170181]=note: print w/replies, xml ) Need Help??


in reply to Re: Leading empty array elements after splitting
in thread Leading empty array elements after splitting

use warnings; use strict; Are always on for me - no warning was given, odd!
  • Comment on Re^2: Leading empty array elements after splitting

Replies are listed 'Best First'.
Re^3: Leading empty array elements after splitting
by stevieb (Canon) on Aug 22, 2016 at 16:29 UTC

    What version of Perl are you using (perl -v)?

    On both 5.20.3 and 5.24.0, this code produces the following warning:

    perl -wMstrict -E 'my @test = split((/\D/g), "x4d77");' Use of /g modifier is meaningless in split at -e line 1.
      5.25.2

        Can you please run the following command at the command line and reply with what the output is?

        perl -wMstrict -E 'my @test = split((/\D/g), "x4d77"); say $];'

Log In?
Username:
Password:

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

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

    No recent polls found