Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
General
:
Perl Programming
:
Splitting One Variable Into Two
Previous Thread
Next Thread
Print Thread
View Threaded
Feb 7, 1999, 5:06 PM
Lee
User
(154 posts)
Feb 7, 1999, 5:06 PM
Post #1 of 2
Views: 2717
Shortcut
Splitting One Variable Into Two
In the following example:
$email = 'johndoe@acme.net'
how do I make $name = 'johndoe' and $server = 'acme.net'?
Feb 7, 1999, 5:11 PM
Mark Badolato
Veteran
(1509 posts)
Feb 7, 1999, 5:11 PM
Post #2 of 2
Views: 2599
Shortcut
Re: Splitting One Variable Into Two
In reply to
#!/usr/bin/perl
$email = 'johndoe@acme.net';
($name, $server) = split ("\@", $email);
--Mark
------------------
You can reach my by ICQ at UID# 8602162
Previous Thread
Next Thread
Print Thread
View Threaded