in reply to Perlish way to do an ls *.sf

{ local $\=$/; print for glob("*.$ext"); }
is one way. There are lots.

Update: bareblocked and added output record seperator.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: Perlish way to do an ls *.sf
by PrimeLord (Pilgrim) on Mar 29, 2002 at 18:31 UTC
    And for slightly less typing you could do

    { local $\=$/; print for (<"*.$ext">); }
    :)

      If you must golf...

      { local$\=$/; print for<*.$ext> }

      Not that I would advocate such a course in general... ;-)



      If God had meant us to fly, he would *never* have given us the railroads.
          --Michael Flanders

        but wouldn't you rather...
        print join $/, <*.$ext>;
           MeowChow                                   
                       s aamecha.s a..a\u$&owag.print