Single vs Double quotes.
#!/usr/bin/perl use strict; use warnings; use feature 'say'; my $subject = 'Citizens, not subjects!'; sub wrong{ my ( $emailsubject ) = @_; say 'Email subject: $emailsubject'; } sub right{ my ( $emailsubject ) = @_; say "Email Subject: $emailsubject"; } wrong( $subject ); right( $subject );
Strings in Perl: quoted, interpolated and escaped.
In reply to Re: Pass parameter in email subject and body through MIME::Lite;
by marto
in thread Pass parameter in email subject and body through MIME::Lite;
by ytjPerl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |