in reply to Re: execution problem if dir name has space in it's name
in thread execution problem if dir name has space in it's name

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Re^2: execution problem if dir name has space in it's name

Replies are listed 'Best First'.
Re^3: execution problem if dir name has space in it's name
by davorg (Chancellor) on Jul 08, 2009 at 14:53 UTC
    How can i use that in my script

    You could try reading the documentation for the module.

    any more suggestions, how to run my program without using bsd_glob

    Why do you need more suggestions? The suggestion of using bsd_glob is the best solution to your problem.

    I am trying but with no luck

    If you gave us a better description of the problems you're having with File::Glob then we can probably help you solve them. "With no luck" is a terrible problem report :-)

    --

    See the Copyright notice on my home node.

    Perl training courses

Re^3: execution problem if dir name has space in it's name
by cdarke (Prior) on Jul 08, 2009 at 14:51 UTC
    Just put use File::Glob; at the top of the script, it helps with space issues even without using bsd_glob.

      No quite. You need use File::Glob qw( glob );. Builtins aren't overridden unless explicitly imported.

      $ perl -le' print for glob "a b"' a b $ perl -le'use File::Glob; print for glob "a b"' a b $ perl -le'use File::Glob qw( glob ); print for glob "a b"' a b