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


in reply to Manually adding delimiters instead of join()

If you are set on using :: as your separator, you would have to escape them like any other special characters. You could do something like this:

$users{$username}"$password\:\:$name\:\:$email\:\:$website\:\:$start"; Thanks
Greg W

Replies are listed 'Best First'.
Re^2: Manually adding delimiters instead of join()
by periapt (Hermit) on Oct 13, 2004 at 12:23 UTC
    Alternately, since you only need to break up the :: variable interpolation
    $users{$username} = "$password\::$name\::$email\::$website\::$start";
    or even (although this isn't any better than join-not that there is anything wrong with join)
    $password.'::'.$name.'::'.$email.'::'.$website.'::'.$start

    PJ
    use strict; use warnings; use diagnostics;