[sf-perl] A beginners' Question
xantus at teknikill.net
Mon May 7 17:49:51 PDT 2007
Did you check the value of $target first?
You can use $^X to get the full path of the perl you are running.
Although if the script is executable, and has a #! line, then you don't need
it at all.
Are you using cygwin?
On 5/7/07, nheller at silcon.com <nheller at silcon.com> wrote:
> I read PerlDocs and this is what I tried:
> 1. chdir "c:\\sqlscr";
> 2. my $target = readlnk("Multi_SQL.pl");
> 3. system "Perl $target";
> I received a fatal error that line 2 (above) contained a call to an
> "Undefined Subroutine". I couldn't tell from Perl Docs what I should have
> included (require...?).
> Can you give me some insight.
> Neil Heller
> > readlink() ? Then execute the target?
> > perldoc -f readlink
> > don't know if works in waanderz.
> > On 5/7/07, nheller at silcon.com <nheller at silcon.com> wrote:
> >> I'm trying to write a Perl script in Winderz. At one point in my
> >> script,
> >> I want to launch another Perl script.
> >> system "Perl secondScript.pl";
> >> The problem I'm having is that secondScript.pl is a link to the real
> >> secondScript.pl (which is at a location with a very long URN) and Perl
> >> balks at executing the link.
> >> Does anybody have an idea about how I can get around this?
> > --
> > Live in a world of your own, but always welcome visitors.
> > _______________________________________________
> > SanFrancisco-pm mailing list
> > SanFrancisco-pm at pm.org
> > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm
> SanFrancisco-pm mailing list
> SanFrancisco-pm at pm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SanFrancisco-pm