Um, pretty much all of them put together :)
Ok, maybe Re^3: hex code passed from command line is interpreted literally in substitution, and starting at Re^3: hex code passed from command line is interpreted literally in substitution
Maybe this will help
| real perl program |
SAME perl program (also real) |
logical equivalent (also real, but some subs undefined) |
| print "\x41"; |
print('A'); |
print( chr( 65 ) ); |
| print "\x41t the $hop"; |
print('At the'.$hop); |
print(
concat(
'At the',
getVar('$hop')
)
);
|
$hop="\x41";
print "\x41t the $hop";
|
$hop='A';
print('At the'.$hop);
|
setVar('$hop', 'A');
print(
concat(
'At the',
getVar('$hop')
)
);
|
$hop="\\x41";
print "\x41t the $hop";
|
$hop='\x41';
print('At the'.$hop);
|
setVar('$hop', '\x41');
print(
concat(
'At the',
getVar('$hop')
)
);
|
$hop="\\x41";
print "\x41t the $hop";
s{.}{\x41};
|
$hop='\x41';
print('At the'.$hop);
$_ =~ s/./A/;
|
setVar('$hop', '\x41');
print(
concat(
'At the',
getVar('$hop')
)
);
substitute(
getVar('$_'),
lhsRe('.'),
rhsString('A')
);
|
|
|
|
$hop="\\x41";
print "\x41t the $hop";
s{.}{\x41$hop};
|
$hop='\x41';
print('At the'.$hop);
$_ =~ s/./A$hop/;
|
setVar('$hop', '\x41');
print(
concat(
'At the',
getVar('$hop')
)
);
substitute(
getVar('$_'),
lhsRe('.'),
rhsEval('
concat(
\'A\',
getVar(\'$hop\')
);
'
)
);
|
|
|
|
$hop="\\x41";
print "\x41t the $hop";
s{.}{"\x41$hop"}e;
|
$hop='\x41';
print('At the'.$hop);
$_ =~ s/"./A$hop"/e;
|
setVar('$hop', '\x41');
print(
concat(
'At the',
getVar('$hop')
)
);
substitute(
getVar('$_'),
lhsRe('.'),
rhsEval(
expandBackslashed(
rhsEval('
concat(
\'A\',
getVar(\'$hop\')
);
'
)
)
)
);
|