Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Perlish way to do an ls *.sf

by PrimeLord (Pilgrim)
on Mar 29, 2002 at 18:31 UTC ( [id://155303]=note: print w/replies, xml ) Need Help??


in reply to Re: Perlish way to do an ls *.sf
in thread Perlish way to do an ls *.sf

And for slightly less typing you could do

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

Replies are listed 'Best First'.
Re: Re: Re: Perlish way to do an ls *.sf
by ChemBoy (Priest) on Mar 29, 2002 at 18:56 UTC

    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

        print join $/, <*.$ext>;

        print map$_.$/,<*.$ext>;
        Same length, but also adds newline to last item.

        U28geW91IGNhbiBhbGwgcm90MTMgY
        W5kIHBhY2soKS4gQnV0IGRvIHlvdS
        ByZWNvZ25pc2UgQmFzZTY0IHdoZW4
        geW91IHNlZSBpdD8gIC0tIEp1ZXJk
        

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://155303]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-26 04:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found