Char-Greek
view release on metacpan or search on metacpan
lib/Egreek.pm view on Meta::CPAN
325032513252325332543255325632573258325932603261326232633264326532663267326832693270
}
# variable or function
# $ @ % & * $ #
elsif
(/\G ( (?: [\$\@\%\&\*] | \$\
# | -> | \b sub \b) (?>\s*) (?: split | chop | index | rindex | lc | uc | fc | chr | ord | reverse | getc | tr | y | q | qq | qx | qw | m | s | qr | glob | lstat | opendir | stat | unlink | chdir ) ) \b /oxmsgc)...
$slash
=
'div'
;
return
$1;
}
# $ $ $ $ $ $ $ $ $ $ $ $ $ $
# $ @ # \ ' " / ? ( ) [ ] < >
elsif
(/\G ( \$[\$\@\
#\\\'\"\/\?\(\)\[\]\<\>] ) /oxmsgc) {
$slash
=
'div'
;
return
$1;
}
# while (<FILEHANDLE>)
elsif
(/\G \b (
while
(?>\s*) \( (?>\s*) <[\$]?[A-Za-z_][A-Za-z_0-9]*> (?>\s*) \)) \b /oxgc) {
return
$1;
}
# while (<WILDCARD>) --- glob
lib/Egreek.pm view on Meta::CPAN
457445754576457745784579458045814582458345844585458645874588458945904591459245934594
}
# variable or function
# $ @ % & * $ #
elsif
(
$string
=~ /\G ( (?: [\$\@\%\&\*] | \$\
# | -> | \b sub \b) (?>\s*) (?: split | chop | index | rindex | lc | uc | fc | chr | ord | reverse | getc | tr | y | q | qq | qx | qw | m | s | qr | glob | lstat | opendir | stat | unlink | chdir ...
$e_string
.= $1;
$slash
=
'div'
;
}
# $ $ $ $ $ $ $ $ $ $ $ $ $ $
# $ @ # \ ' " / ? ( ) [ ] < >
elsif
(
$string
=~ /\G ( \$[\$\@\
#\\\'\"\/\?\(\)\[\]\<\>] ) /oxmsgc) {
$e_string
.= $1;
$slash
=
'div'
;
}
# subroutines of package Egreek
elsif
(
$string
=~ /\G \b (CORE:: | ->(>?\s*) (?:
atan2
| [a-z]{2,})) \b /oxgc) {
$e_string
.= $1;
$slash
=
'm//'
; }
elsif
(
$string
=~ /\G \b Char::
eval
(?= (?>\s*) \{ ) /oxgc) {
$e_string
.=
'eval'
;
$slash
=
'm//'
; }
elsif
(
$string
=~ /\G \b Greek::
eval
(?= (?>\s*) \{ ) /oxgc) {
$e_string
.=
'eval'
;
$slash
=
'm//'
; }
elsif
(
$string
=~ /\G \b Char::
eval
\b /oxgc) {
$e_string
.=
'eval Char::escape'
;
$slash
=
'm//'
; }
elsif
(
$string
=~ /\G \b Greek::
eval
\b /oxgc) {
$e_string
.=
'eval Greek::escape'
;
$slash
=
'm//'
; }
( run in 0.230 second using v1.01-cache-2.11-cpan-a5abf4f5562 )