File: 06rewrite_config.p

package info (click to toggle)
libinline-perl 0.50-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 632 kB
  • sloc: perl: 3,950; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 241 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Inline->init() ;

use Inline Config =>
    DIRECTORY => '_Inline_test',
    _TESTING => 1,
    REWRITE_CONFIG_FILE => 1;

use Inline 'Foo';
is(add(3, 7), 10, 'foo test');

1;

__DATA__

__Foo__

foo-sub add {
    foo-return $_[0] + $_[1];
}