fenonn has asked for the wisdom of the Perl Monks concerning the following question:
I feel sort of stupid asking what seems such an easy question, but I will ask it anyway.
I want to print an email address and name in the following form
I want to print an email address and name in the following form
I wrote some simple code to print this but I don't get the output I expect. Here is my output.first last <email>
Here is my code.'first last '
What am I doing wrong here?use strict; my $firstName = 'first'; my $lastName = 'last'; my $email = 'email@email.com'; print "$firstName $lastName \<$email\>";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Should be simple, What don't I see?
by Armos (Scribe) on May 30, 2002 at 15:14 UTC | |
by thunders (Priest) on May 30, 2002 at 15:18 UTC | |
by fenonn (Chaplain) on May 30, 2002 at 15:15 UTC | |
Re: Should be simple, What don't I see?
by dev2000 (Sexton) on May 30, 2002 at 15:36 UTC | |
Re: Should be simple, What don't I see?
by Aristotle (Chancellor) on May 31, 2002 at 00:29 UTC | |
Re: Should be simple, What don't I see?
by krujos (Curate) on May 30, 2002 at 15:19 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |
Back to
Seekers of Perl Wisdom