ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/urxvt.pm
(Generate patch)

Comparing rxvt-unicode/src/urxvt.pm (file contents):
Revision 1.8 by root, Mon Jan 2 20:35:39 2006 UTC vs.
Revision 1.9 by root, Mon Jan 2 20:40:20 2006 UTC

2 2
3rxvtperl - rxvt-unicode's embedded perl interpreter 3rxvtperl - 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
10thus must be encoded as UTF-8. 10thus must be encoded as UTF-8.
11 11
12 sub on_sel_grab { 12 sub on_sel_grab {
226sub invoke { 226sub 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) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines