#!/usr/bin/perl -l # https://perlmonks.org/?node_id=1218408 use strict; use warnings; my $x = "YAAY"; my $y = "YAAA"; print +(($x ^ $y) =~ tr/\0/\xff/cr & $x) =~ tr/\0//dr;
In reply to Re: variable compare
by tybalt89
in thread variable compare
by dideod.yang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |