… | |
… | |
2 | |
2 | |
3 | rxvtperl - 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 F<@@RXVT_LIBDIR@@/urxvt/perl-ext/>, they will be loaded automatically. |
7 | * Put your scripts into F<@@RXVT_LIBDIR@@/urxvt/perl/>, they will be loaded automatically. |
8 | |
8 | |
9 | * Scripts are evaluated in a 'use strict' and 'use utf8' environment, and |
9 | * Scripts are evaluated in a 'use strict' and 'use utf8' environment, and |
10 | thus must be encoded as UTF-8. |
10 | thus must be encoded as UTF-8. |
11 | |
11 | |
12 | sub on_sel_grab { |
12 | sub on_sel_grab { |
… | |
… | |
226 | sub invoke { |
226 | sub invoke { |
227 | local $term = shift; |
227 | local $term = shift; |
228 | my $htype = shift; |
228 | my $htype = shift; |
229 | |
229 | |
230 | if ($htype == 0) { # INIT |
230 | if ($htype == 0) { # INIT |
231 | my @dirs = ((split /:/, $term->resource ("perl_lib")), $LIBDIR); |
231 | my @dirs = ((split /:/, $term->resource ("perl_lib")), "$LIBDIR/perl"); |
232 | |
232 | |
233 | for my $ext (split /:/, $term->resource ("perl_ext")) { |
233 | for my $ext (split /:/, $term->resource ("perl_ext")) { |
234 | my @files = grep -f $_, map "$_/$ext", @dirs; |
234 | my @files = grep -f $_, map "$_/$ext", @dirs; |
235 | |
235 | |
236 | if (@files) { |
236 | if (@files) { |