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

[PATCH lib/diagnostics.pm 5.005_62] syntax error!! #967

Closed
p5pRT opened this issue Dec 17, 1999 · 1 comment
Closed

[PATCH lib/diagnostics.pm 5.005_62] syntax error!! #967

p5pRT opened this issue Dec 17, 1999 · 1 comment

Comments

@p5pRT
Copy link

p5pRT commented Dec 17, 1999

Migrated from rt.perl.org#1914 (status was 'resolved')

Searchable as RT1914$

@p5pRT
Copy link
Author

p5pRT commented Dec 17, 1999

From @schwern

String found where operator expected at /usr/local/perl5.005_62/lib/5.00562/diagnostics.pm line 184, near ""$archlib/pods/perldiag.pod""

While I'm at it I stuck in a $VERSION and "fixed" a "used only once"
for $old_w.

--- lib/diagnostics.pm 1999/12/17 20​:44​:34
+++ lib/diagnostics.pm 1999/12/17 20​:46​:29
@​@​ -170,6 +170,8 @​@​
require 5.001;
use Carp;

+$VERSION=1.00;
+
use Config;
($privlib, $archlib) = @​Config{qw(privlibexp archlibexp)};
if ($^O eq 'VMS') {
@​@​ -180,7 +182,7 @​@​
@​trypod = (
  "$archlib/pod/perldiag.pod",
  "$privlib/pod/perldiag-$].pod",
- "$privlib/pod/perldiag.pod"
+ "$privlib/pod/perldiag.pod",
  "$archlib/pods/perldiag.pod",
  "$privlib/pods/perldiag-$].pod",
  "$privlib/pods/perldiag.pod"
@​@​ -377,6 +379,8 @​@​
  exit;
} else {
  $old_w = 0; $oldwarn = ''; $olddie = '';
+ # Shut up a "used only once" warning.
+ () = $old_w;
}

sub import {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant