in reply to using split on a string

First, your split seems to be a bit off. You are asking for a "space and one character" and I think you are looking for "dot and anything else." If that is the case, try this for the split:

my ($junk, $extension) = split /\./, $pubupload;

That should get you this:

$junk = C:\Documents and Settings\Administrator\Desktop\china $extension = txt

Hope that helps...

D a d d i o