CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: AAARGH!!!!.... This Is FRUSTRATING!: Edit Log



kvall
New User

Aug 10, 2002, 3:35 PM


Views: 464
AAARGH!!!!.... This Is FRUSTRATING!

The following code works fine if I remove all mentions of $email.


foreach $result (@results){
chop $result;
($name, $year, $org, $email) = split /\~/, $result;
print "<tr><td>$name</td>\n";
print "<td>$year</td>\n";
print "<td>$org</td>\n";
print "<td><a href=mailto:$email>$email</a>\n";
print "</td></tr>\n";
}
print "</table>\n";


With $email in the code I get the following error message.

Use of uninitialized value in concatenation (.) or string at scripts\alphasearch.pl line 82

Line 82 is the first use of $email.

I am sure the problem is the @ sign contained in the value of $email,
I just don't know how to work around it.

Thanks in advance for your help.


(This post was edited by kvall on Aug 10, 2002, 3:40 PM)


Edit Log:
Post edited by kvall (New User) on Aug 10, 2002, 3:40 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives