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 748525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:19:49+00:00 2026-05-14T14:19:49+00:00

The following is pretty well copied from the documentation. use File::GlobMapper qw( globmap );

  • 0

The following is pretty well copied from the documentation.

    use File::GlobMapper qw( globmap );

    for my $pair (globmap '<*.tar.gz>' => '<#1.tgz>' )
     {
     }

And it gives

    String found where operator expected at globmapper_test1.pl line 4, near "globmap '<*.tar.gz>'"
            (Do you need to predeclare globmap?)

(Using ActivePerl 5.10.0 on Windows)

Side questions – if GlobMapper only exports one function, why is it set so you have to export it explicitly?

  • 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-14T14:19:50+00:00Added an answer on May 14, 2026 at 2:19 pm

    It’s a bug in File::GlobMapper. It sets up the @EXPORT_OK variable, but doesn’t actually use Exporter.

    But it gets worse. globmap doesn’t return a list of arrayrefs (as claimed in the documentation). It really returns an arrayref of arrayrefs. So you’d really have to write:

    use File::GlobMapper; 
    
    for my $pair (@{ File::GlobMapper::globmap('<*.tar.gz>' => '<#1.tgz>') }) { 
      my ($from, $to) = @$pair;
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the following in my application DatePicker from jQuery UI Pretty Photo.
I think the following image can describe the problem pretty well... https://www.dropbox.com/s/pd1syth3gce6qh7/ios_uimenucontroller.png I also
i have the following problem: i want to read in a String from the
We're using iText to generate PDF files from Java code, which works pretty well
I think I understand ViewState pretty well, but the following is giving me some
I use siege to stress test my hand built file server, it works pretty
I have a pretty well-working command that extracts strings from all my .js and
Following pseudocode sums up my question pretty well I think... class Owner { Bar
Following code is a pretty simple and complete JQuery Dialog. Everything works. Problem is
I'm pretty sure the following error is related to the fact that I'm sharing

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.