in reply to Re^4: Challenge: Generate a glob patterns from a word list
in thread Challenge: Generate a glob patterns from a word list

I tend to side with the shell here. Braces which don't enclose a comma are not a glob pattern (for me).


🦛

  • Comment on Re^5: Challenge: Generate a glob patterns from a word list

Replies are listed 'Best First'.
Re^6: Challenge: Generate a glob patterns from a word list
by LanX (Saint) on May 06, 2021 at 11:04 UTC
    I disagree, behavior should be consistent.

    The glob could be constructed with a

    $str = join ",", @list

    part between the curlies

    glob "$start{$str}$end"

    and fail for @list < 2

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery