Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 639215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:49:04+00:00 2026-05-13T20:49:04+00:00

Can someone tell me, why the opendir doesn’t work? #!/usr/bin/env perl6 use v6; my

  • 0

Can someone tell me, why the “opendir” doesn’t work?

#!/usr/bin/env perl6
use v6;

my $file = 'Dokumente/test_file';

if ( my $fh = open $file, :r ) {
    for $fh.lines -> $line {
    say $line;
    }
} else {
    say "Could not open '$file'";
}


my $dir = 'Dokumente';

my $dh = opendir $dir err die "Could not open $dir: $!";

Output:

Hello, World!
Line 2.
Last line.

Could not find non-existent sub &opendir
current instr.: ‘_block14’ pc 29 (EVAL_1:0)
called from Sub ‘!UNIT_START’ pc 1163 (src/glue/run.pir:20)
called from Sub ‘perl6;PCT;HLLCompiler;eval’ pc -1 ((unknown file):-1)
called from Sub ‘perl6;PCT;HLLCompiler;evalfiles’ pc 1303 (compilers/pct/src/PCT/HLLCompiler.pir:707)
called from Sub ‘perl6;PCT;HLLCompiler;command_line’ pc 1489 (compilers/pct/src/PCT/HLLCompiler.pir:794)
called from Sub ‘perl6;Perl6;Compiler;main’ pc -1 ((unknown file):-1)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T20:49:05+00:00Added an answer on May 13, 2026 at 8:49 pm

    opendir is just not yet implemented. Please file a bug report by sending a mail to rakudobug@perl.org.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone tell me why this doesn't work: $(document).ready(function() { $(#cookie).text(expanded); //panel toggle $(.btn-slide).click(function()
Can someone tell me why it doesn't work? The eclipse doesn't show any erros
Can someone tell me if it's possible to create an apk file during runtime?
Can someone tell me for what i can use jquerymobile ? Can i use
Can someone tell me why this won't work? var top = 0; for (divToPosition
Can someone tell me why I cannot use $.proxy to remove a dom element.
Can someone tell me how i can change the .xml file that a flash
Can someone tell me why openssl 0.9.7h work faster than openssl 1.0.1c? Both with
Can someone tell me in GWT, when the compiler generates the war file, in
Can someone tell me how to modify this regex to allow periods in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.