Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Dealing with split

by GrandFather (Saint)
on Feb 22, 2006 at 22:30 UTC ( [id://532110]=note: print w/replies, xml ) Need Help??


in reply to Re: Dealing with split
in thread Dealing with split

You should really test your code before posting. All the \ dissapear from $str - use non-interpolating ' rather than " to fix that.

There is a missing / in the split regex and an extra ) following it.

Even after fixing those errors, when the code is run a "Use of uninitialized value in split" warning is issued and incorrect output is generated:

\source\test\test.c@@main\com\etc c:\temp\source\test\test1.c@@main\co +m\test c:\temp\source\test\test3\test2.c@@main\com\etc\test

DWIM is Perl's answer to Gödel

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-18 21:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found