Search found 2 matches

by _matmat_
Sun Apr 14, 2013 5:54 am
Forum: Challenges Solved
Topic: How is your Grammar?
Replies: 16
Views: 1635

$value = "JKL"; while ($value =~ m/[A-Z]/) { $value =~ s/A/is/g; $value =~ s/B/mm/g; $value =~ s/C/oo/g; $value =~ s/D/rgr/g; $value =~ s/E/ryg/g; $value =~ s/F/dth/g; $value =~ s/G/you/g; $value =~ s/H/esol/g; $value =~ s/I/ionA/g; $value =~ s/J/GDaBarA/g; $value =~ s/K/veECFHutI/g; $val...
by _matmat_
Sun Apr 14, 2013 5:32 am
Forum: Challenges Solved
Topic: Valuation
Replies: 103
Views: 9329

I originally had if ($char == 'x') which is not the same as if ($char eq 'x') Full code: $sum = 0; $value= "93752xxx746x27x1754xx90x93xxxxx238x44x75xx08750912738x8461x8759383xx328x4x4935903x6x5550360535004x0xx945958961296x267x8842xxx5x6xx61x4x48482x80xxx83316843x7x4x83x9521731xxx25x51xx457x6x5x...