Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Odd workings of split

by flexvault (Parson)
on Mar 29, 2012 at 12:48 UTC ( #962375=note: print w/ replies, xml ) Need Help??


in reply to Odd workings of split

Ralesk,

Some things jump out, but take a look at 'quotemeta'. It might help!

"Well done is better than well said." - Benjamin Franklin


Comment on Re: Odd workings of split
Re^2: Odd workings of split
by JavaFan (Canon) on Mar 29, 2012 at 12:55 UTC
    Care to explain how quotemeta is going to help? Or are you just sprouting the first thing that comes in mind, to have a first post?

      JavaFan,

      Originally, I did look at the post quickly, and you are correct that 'quotemeta' would not help. Since there was no output shown, I thought incorrectly that maybe the code was getting into a regex problem with special characters.

      After your response, I took the time to download the code onto a Samba share, login to that machine, and then ftp the 12 lines of code to the machine that I was working on, so that I could see what was going on. I added some code to call the sub and then realized he was calling the sub with null('') but it still worked for me( returned null('') ). I couldn't get the 'split' to return 'undef' but that could be OS or Perl version related.

      But I didn't notice I was first, which would be very rare for me anyway!

      So is it somehow better to be first?

      "Well done is better than well said." - Benjamin Franklin

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2014-12-26 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls