At 01:45 PM 6/7/01 -0500, Shawn wrote: >Can someone let me know what effectively is the difference between >@files = grep {/jpe?g$/i} readdir DIR; >and >@files = grep /jpe?g$/i, readdir DIR; >? > >Or is there any? There isn't. Some people like to use only the block form even in those cases where the expression form will do, for consistency. Some people like to use the expression form where possible because they can use => instead of , and especially in the map statement (which has the same two syntax forms) this looks very mnemonic. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com
- directory listing to array Evan McNabb
- Re: directory listing to array Randal L. Schwartz
- Re: directory listing to array Evan McNabb
- Re: directory listing to array Paul
- Re: directory listing to array Jean-Matthieu Guerin
- RE: directory listing to array John Storms
- Re: directory listing to array Shawn
- Re: directory listing to array Pete Emerson
- Re: directory listing to array Shawn
- Re: directory listing to array Jeff 'japhy' Pinyan
- Re: directory listing to array Peter Scott
- Re: directory listing to ar... Richard Hulse
- Re: directory listing t... iansmith
- Re: directory listing t... Randal L. Schwartz
- Re: directory listing t... iansmith
- Re: directory listing to array Michael Fowler
- RE: directory listing to array Andrew Nelson
- RE: directory listing to array Peter Cornelius
- RE: directory listing to array Richard Hulse
- RE: directory listing to array Peter Cornelius
- RE: directory listing to array iansmith