Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Manually adding delimiters instead of join()

by gawatkins (Monsignor)
on Oct 12, 2004 at 20:32 UTC ( #398678=note: print w/replies, xml ) Need Help??


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;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2023-12-08 02:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (35 votes). Check out past polls.

    Notices?