in reply to Re^3: Using regex in file glob ?
in thread Using regex in file glob ?

perl -lE"opendir$d,'.';say for grep/\.pl$/,readdir$d"

Replies are listed 'Best First'.
Re^5: Using regex in file glob ?
by LanX (Saint) on May 03, 2021 at 21:54 UTC
    > perl -E"say for grep{/\.pl$/} <*>" demo_lock_data.pl print_time.pl self_rename.pl uniq_time.pl wrapped_pl.pl

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