Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Comparison by position and value

by ambrus (Abbot)
on Jan 02, 2005 at 11:21 UTC ( #418772=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub compatible { 
        my ($s1, $s2) = @_; 
    ...
            $s1=~/\G\z/ or $s2=~/\G\z/; 
        1; } 
    print(compatible("_8__3__19", "4_8___7__") ? "true\n" : "false\n");
    
  2. or download this
    sub compatible {
        my ($s1, $s2) = @_;
    ...
            for [ qw[ _8__3__19 48____7__ ] ],  # compat
                    [ qw[ _8__3__19 4_8___7__ ] ],  # compat
                    [ qw[ _8__3__19 48_____7_ ] ];  # clash
    
  3. or download this
    sub compatible {
        my ($s1, $s2) = @_;
    ...
                    [ qw[ __8_3__19 48____7__ ] ],  # clash
                    [ qw[ __8_3__19 84____7__ ] ],  # clash
                    [ qw[ _8__3__19 48_____7_ ] ];  # clash
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2023-09-23 07:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?