| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
#!perl |
|
2
|
1
|
|
|
1
|
|
2939
|
use 5.008001; |
|
|
1
|
|
|
|
|
4
|
|
|
|
1
|
|
|
|
|
37
|
|
|
3
|
1
|
|
|
1
|
|
5
|
use utf8; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
6
|
|
|
4
|
1
|
|
|
1
|
|
20
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
26
|
|
|
5
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
40
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
########################################################################### |
|
8
|
|
|
|
|
|
|
########################################################################### |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
# Constant values used by packages in this file: |
|
11
|
1
|
|
|
1
|
|
399
|
use only 'Readonly' => '1.03-'; |
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Readonly my %TEXT_STRINGS => ( |
|
13
|
|
|
|
|
|
|
'ROS_S_HELLO' => q[Welcome to the Rosetta DBMS!], |
|
14
|
|
|
|
|
|
|
'ROS_S_GOODBYE' => q[Goodbye!], |
|
15
|
|
|
|
|
|
|
'ROS_S_DBMS_INIT_FAIL' |
|
16
|
|
|
|
|
|
|
=> q[Initialization of the Engine "" has failed.], |
|
17
|
|
|
|
|
|
|
'ROS_S_DBMS_INIT_SUCCESS' |
|
18
|
|
|
|
|
|
|
=> q[Initialization of the Engine "" is successful.], |
|
19
|
|
|
|
|
|
|
'ROS_S_PROMPT' |
|
20
|
|
|
|
|
|
|
=> q[Enter a Rosetta D command to execute (all on one line),] |
|
21
|
|
|
|
|
|
|
. q[ or press ENTER to quit.], |
|
22
|
|
|
|
|
|
|
'ROS_S_TODO_RESULT' => q[TODO: prepare and execute that command.], |
|
23
|
|
|
|
|
|
|
); |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
########################################################################### |
|
26
|
|
|
|
|
|
|
########################################################################### |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
{ package Rosetta::Shell::L::en; # module |
|
29
|
|
|
|
|
|
|
use version; our $VERSION = qv('0.1.1'); |
|
30
|
|
|
|
|
|
|
sub get_text_by_key { |
|
31
|
|
|
|
|
|
|
my (undef, $msg_key) = @_; |
|
32
|
|
|
|
|
|
|
return $TEXT_STRINGS{$msg_key}; |
|
33
|
|
|
|
|
|
|
} |
|
34
|
|
|
|
|
|
|
} # module Rosetta::Shell::L::en |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
########################################################################### |
|
37
|
|
|
|
|
|
|
########################################################################### |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; # Magic true value required at end of a reuseable file's code. |
|
40
|
|
|
|
|
|
|
__END__ |