Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Iterating through string combinations

by I0 (Priest)
on Dec 18, 2001 at 08:47 UTC ( [id://132783]=note: print w/replies, xml ) Need Help??


in reply to Re: Iterating through string combinations
in thread Iterating through string combinations

I think you mean either
$num =~ s{(.)(z*)$}{
or
$left =~ tr/0-9a-y/1-9a-z/ or $left = "1";

Replies are listed 'Best First'.
Re: Re: Re: Iterating through string combinations
by merlyn (Sage) on Dec 18, 2001 at 09:18 UTC
    Ahh, no the problem is that I had (.|^) and tested it, but then decided (incorrectly) it should be (^|.). I like your (.) solution the best.

    -- Randal L. Schwartz, Perl hacker

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-03-28 16:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found