Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Parsing a file with multiple delimeters

by kulls (Hermit)
on Jan 07, 2006 at 04:44 UTC ( [id://521688]=note: print w/replies, xml ) Need Help??


in reply to Parsing a file with multiple delimeters

I tried with simple understanding
use strict; use warnings; my @filename=(raja.exe,rhs.dll,sd.sf); my $pattern='(\.exe) | (\.dll)'; foreach( @filename) { print $_ if( $_ =~ /$pattern/x ); }

- kulls

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-25 12:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found