This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Replace explict "/dev/null" with BIT_BUCKET, which varies by platform.
[perl5.git] / pp_ctl.c
index 5288c66..0307a2e 100644 (file)
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3220,7 +3220,8 @@ PP(pp_require)
                            }
 
                            if (!tryrsfp) {
-                               tryrsfp = PerlIO_open("/dev/null", PERL_SCRIPT_MODE);
+                               tryrsfp = PerlIO_open(BIT_BUCKET,
+                                                     PERL_SCRIPT_MODE);
                            }
                        }
                        SP--;