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.206 by root, Tue Jun 5 21:06:15 2012 UTC vs.
Revision 1.207 by root, Tue Jun 5 21:29:52 2012 UTC

943 }; 943 };
944} 944}
945 945
946no warnings 'utf8'; 946no warnings 'utf8';
947 947
948sub perl_libdirs {
949 map { split /:/ }
950 $_[0]->resource ("perl_lib"),
951 $ENV{URXVT_PERL_LIB},
952 "$ENV{HOME}/.urxvt/ext",
953 "$LIBDIR/perl"
954}
955
956our %META; # meta header information from scripts
957our %SCAN; # which dirs already scanned
958
948sub resource { 959sub resource {
949 my ($term, $name, $isarg, $flag, $value) = @_; 960 my ($term, $name, $isarg, $flag, $value) = @_;
961
962 for my $dir (perl_libdirs $term) {
963 }
950 964
951 warn "resourece<@_>\n";#d# 965 warn "resourece<@_>\n";#d#
952 966
953 0 967 0
954} 968}
996sub invoke { 1010sub invoke {
997 local $TERM = shift; 1011 local $TERM = shift;
998 my $htype = shift; 1012 my $htype = shift;
999 1013
1000 if ($htype == 0) { # INIT 1014 if ($htype == 0) { # INIT
1001 my @dirs = ((split /:/, $TERM->resource ("perl_lib")), "$ENV{HOME}/.urxvt/ext", "$LIBDIR/perl"); 1015 my @dirs = perl_libdirs $TERM;
1002 1016
1003 my %ext_arg; 1017 my %ext_arg;
1004 1018
1005 { 1019 {
1006 my @init = @TERM_INIT; 1020 my @init = @TERM_INIT;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines