Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Strings with @

by matze (Friar)
on Mar 09, 2006 at 20:38 UTC ( [id://535502]=note: print w/replies, xml ) Need Help??


in reply to Strings with @

Shouldn't you quote your email-address?
my $recipient="some.g.guy\@bigcorporation.com";
Otherwise perl is expecting some code after the =.

Update: added escaping of '@'. Forgot about that.

Replies are listed 'Best First'.
Re^2: Strings with @
by Fletch (Bishop) on Mar 09, 2006 at 20:45 UTC

    Actually he needs to use '' or q{}, otherwise the @bigcorporation will be interpreted as the name of an array and he'll get a different message.

    Update: Not to mention changing || to or, or else adding some parens in that open statement.

Re^2: Strings with @
by dracos (Sexton) on Mar 09, 2006 at 20:49 UTC
    Actualy that will try to find the aray @bigcorporation.
    better yet:
    my $recipient= q{some.g.guy@bigcorporation.com};
    this way no interpitation will take place.
    Ron...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-19 03:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found