Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting core global variables to odd things is causing failures #47

Open
shadowcat-mst opened this issue Apr 6, 2020 · 0 comments
Open

Comments

@shadowcat-mst
Copy link

This is triggering a complaint from a $fh->print inside Mail::Message that appears to be expecting $\ to be either undef or "\n" - and given the perldoc for the variable says that the default/empty value is undef, not "", I would argue that:

$, = "";      # output field separator is null string
$/ = "\n";    # input record separator is newline
$\ = "";      # output record separator is null string
$^W = 0;      # warnings are off

should be

$, = undef;   # output field separator is null string
$/ = "\n";    # input record separator is newline
$\ = undef;   # output record separator is null string
$^W = 0;      # warnings are off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant