http://www.perlmonks.org?node_id=1008116


in reply to [SOLVED]Unable to split $ARGV[0] variable. Can it be done?

Split does not care where you got your string data from; that would be silly.

Print out the contents of your variable just before you do the split, and show the actual code that includes the split. Comparing the two with the documentation on how split works should then make the problem obvious.