From: ahoward Date: 2002-12-12T01:59:48+09:00 Subject: Re: calling a perl script On Wed, 11 Dec 2002, max wrote: > i wrote my test.pl with a print 2. > but when i execute output = `test.pl` > > i get an error. > > > > irb(main):001:0> output = `test.pl` > (irb):1: command not found: test.pl > "" either a) ./ is not in your path - try `./test.pl` b) the #! line of test.pl referes to the wrong path to perl #!/usr/local/bin/perl ?? #!/usr/bin/perl ?? #!/bin/perl ?? etc. this can, in somecases, be sidestepped by using #!/usr/bin/env perl or #!/usr/local/bin/env perl instead, depending on the path to env. -a -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ahoward@fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ==================================== SIGSIG -- signature too long (core dumped)