- Timestamp:
- 08/01/08 10:38:42 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
perl5/Pugs-Compiler-Perl6/lib/Pugs/Runtime/Perl6Prelude.pm
r21654 r21663 23 23 # sub sleep($seconds) is export { use v5; CORE::sleep($seconds); use v6; } 24 24 25 sub open($file, :$w? ) { use v5; my $fh = IO::File->new; $fh->open($file, ($w ? 'w' : ()) ) || warn "can't open file $file"; $fh; use v6; } 25 sub open($file, :$w? ) { 26 use v5; 27 my $fh = Pugs::Runtime::Perl6::IO::File->new; 28 $fh->open($file, ($w ? 'w' : ()) ) || warn "can't open file $file"; 29 $fh; 30 use v6; 31 } 26 32 27 33 module Pugs::Internals;
