Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: grep question

by monarch (Priest)
on Nov 17, 2005 at 05:31 UTC ( #509294=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my @grepped = grep /\d{8}\.txt$/ @filenames;
    
  2. or download this
        if ( $filename =~ m/(\d{4})\d{4}.txt$/ ) {
            print( $1 . "\n" );
        }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2023-01-30 19:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?