in reply to mail::sendmail with an array of hashes
could be replaced with:# change normal array separator my $foo = $"; $" = "\n"; print FH "@head"; $" = $foo; # change back
Using local removes the need for a temporary variable, as the saving and restoring of the previous value of the global $" variable is taken care of for you.{ local $" = "\n"; print FH "@head"; }
|
|---|