1 | =head1 NAME |
1 | =head1 NAME |
2 | |
2 | |
3 | urxvt - rxvt-unicode's embedded perl interpreter |
3 | rxvtperl - rxvt-unicode's embedded perl interpreter |
4 | |
4 | |
5 | =head1 SYNOPSIS |
5 | =head1 SYNOPSIS |
6 | |
6 | |
7 | Put your scripts into $LIBDIR/perl-init/, they will be loaded automatically. |
7 | * Put your scripts into F<@@RXVT_LIBDIR@@/urxvt/perl-ext/>, they will be loaded automatically. |
8 | |
8 | |
9 | Each script will only be loaded once, even in urxvtd, and will be valid |
9 | * Each script will only be loaded once, even in urxvtd, and will be valid |
10 | globally. |
10 | globally. |
11 | |
11 | |
12 | Scripts are evaluated in a 'use strict' and 'use utf8' environment, and |
12 | * Scripts are evaluated in a 'use strict' and 'use utf8' environment, and |
13 | thus must be written in utf-8. |
13 | thus must be encoded as UTF-8. |
14 | |
14 | |
15 | sub on_sel_grab { |
15 | sub on_sel_grab { |
16 | warn "you selected ", $_[0]->selection; |
16 | warn "you selected ", $_[0]->selection; |
|
|
17 | () |
17 | } |
18 | } |
18 | |
19 | |
19 | 1 |
20 | 1 |
20 | |
21 | |
21 | =head1 DESCRIPTION |
22 | =head1 DESCRIPTION |