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...