Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: Re: strings with options - how do I do this?

by blakem (Monsignor)
on Feb 27, 2003 at 11:04 UTC ( [id://239061]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: strings with options - how do I do this?
in thread strings with options - how do I do this?

Good points... How about this:
use File::Glob qw(:glob); sub parseit { my $text = shift; $text =~ tr/[|]/{,}/; $text =~ s/([\\?*])/\\$1/g; map {s/\\([\\?*])/$1/g; $_} bsd_glob($text, GLOB_BRACE | GLOB_NOCHECK); }

-Blake

Replies are listed 'Best First'.
Re: Re: Re: Re: strings with options - how do I do this?
by Anonymous Monk on Feb 27, 2003 at 13:32 UTC
    thank you people ... that does it perfectly. I learnt my "something new" for today too.

Log In?
Username:
Password:

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

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

    No recent polls found