Lines Matching refs:perl
1 #!/usr/bin/perl -w
27 # Change 'perl' to './perl' so the shell doesn't go looking through PATH.
29 my($perl) = shift;
30 $perl = File::Spec->catfile(File::Spec->curdir, $perl) unless
31 File::Spec->file_name_is_absolute($perl);
33 return $perl;
35 # Make a putative perl binary say "ok\n". We have to do it this way
38 # `$perl -le "print 'ok'"`. And, for portability, we can't use fork().
40 my $perl = shift;
44 system($perl, "rel2abs2rel$$.pl");
58 my $perl = safe_rel($^X);
59 is( sayok($perl), "ok\n", "`$perl rel2abs2rel$$.pl` works" );
61 $perl = File::Spec->rel2abs($^X);
62 is( sayok($perl), "ok\n", "`$perl rel2abs2rel$$.pl` works" );
64 $perl = File::Spec->canonpath($perl);
65 is( sayok($perl), "ok\n", "canonpath(rel2abs($^X)) = $perl" );
67 $perl = safe_rel(File::Spec->abs2rel($perl));
68 is( sayok($perl), "ok\n", "safe_rel(abs2rel(canonpath(rel2abs($^X)))) = $perl" );
70 $perl = safe_rel(File::Spec->canonpath($^X));
71 is( sayok($perl), "ok\n", "safe_rel(canonpath($^X)) = $perl" );