Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^4: string diff and compare

by tobyink (Abbot)
on May 05, 2012 at 07:17 UTC ( #969018=note: print w/ replies, xml ) Need Help??

in reply to Re^3: string diff and compare
in thread string diff and compare

There are other ways of enforcing scalar context which are a lot more fun. :-)

use 5.010; use strict; use warnings all => 'FATAL'; my ( $old, $new ) = qw( old new ); my ( $rold, $rnew ) = map~~reverse, $old, $new; say for "$old => $rold", "$new => $rnew";
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Comment on Re^4: string diff and compare
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2015-11-27 19:38 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (731 votes), past polls