http://qs1969.pair.com?node_id=157501


in reply to Splitting blunder

1) Are you sure you aren't having issues with escaping characters?
$string ="\\Server\user"; #WRONG! $string ='\\Server\user'; #right

2) What does @tmp look like? Try Data::Dumper. Is $string being placed in element 0, or what?

Replies are listed 'Best First'.
Re: Re: Splitting blunder
by Juerd (Abbot) on Apr 08, 2002 at 18:13 UTC

    $string ='\\Server\user'; #right

    Even with single quotes, backslash can escape delimiters and itself. $string be \Server\user.

    U28geW91IGNhbiBhbGwgcm90MTMgY
    W5kIHBhY2soKS4gQnV0IGRvIHlvdS
    ByZWNvZ25pc2UgQmFzZTY0IHdoZW4
    geW91IHNlZSBpdD8gIC0tIEp1ZXJk