Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

PERL_ROOT - Need info how it works
Hi,
I've a very basic question for clarification.

1.c:/script1 has below lines
$ENV{PERL_ROOT} ='D:/';
open(fh,'perl script2.pl |');
$x=<fh>;
close fh;
print $x;

2. Script2 has just one line
print "hello";

When I execute the script 1, it doesn't execute or find script2.
It works fine, if I give complete path.

Any idea, why its happening so.. ?

any pointers to some documentation, how PERL_ROOT really works is also welco
me.

thanks in advance.

Regards,
Rathna.

Report this thread to moderator Post Follow-up to this message
Old Post
Rathna N
03-28-05 01:55 PM


Re: PERL_ROOT - Need info how it works
Rathna N wrote:
> Hi,

Hello,

> I've a very basic question for clarification.
>
> 1.c:/script1 has below lines
> $ENV{PERL_ROOT} ='D:/';
> open(fh,'perl script2.pl |');
> $x=<fh>;
> close fh;
> print $x;
>
> 2. Script2 has just one line
>  print "hello";
>
> When I execute the script 1, it doesn't execute or find script2.
> It works fine, if I give complete path.
>
> Any idea, why its happening so.. ?
>
> any pointers to some documentation, how PERL_ROOT really works is also welcome.[/c
olor]

perldoc perlrun

PERL_ROOT (specific to the VMS port)
A translation concealed rooted logical name that contains
perl and the logical device for the @INC path on VMS only.
Other logical names that affect perl on VMS include
PERLSHR, PERL_ENV_TABLES, and SYS$TIMEZONE_DIFFERENTIAL but
are optional and discussed further in perlvms and in
README.vms in the Perl source distribution.


So, are you running your programs on the VMS operating system?


John
--
use Perl;
program
fulfillment

Report this thread to moderator Post Follow-up to this message
Old Post
John W. Krahn
03-28-05 01:55 PM


Re: PERL_ROOT - Need info how it works
Hi, thanks for the response,
I observed this behavior on Windows, Linux and NetWare.



On Mon, 28 Mar 2005 03:05:10 -0800, John W. Krahn <krahnj@telus.net> wrote:
> Rathna N wrote: 
>
> Hello,
> 
>
> perldoc perlrun
>
>         PERL_ROOT (specific to the VMS port)
>                     A translation concealed rooted logical name that conta
ins
>                     perl and the logical device for the @INC path on VMS o
nly.
>                     Other logical names that affect perl on VMS include
>                     PERLSHR, PERL_ENV_TABLES, and SYS$TIMEZONE_DIFFERENTIA
L but
>                     are optional and discussed further in perlvms and in
>                     README.vms in the Perl source distribution.
>
> So, are you running your programs on the VMS operating system?
>
> John
> --
> use Perl;
> program
> fulfillment
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>


--
Regards,
Rathna.

Report this thread to moderator Post Follow-up to this message
Old Post
Rathna N
03-28-05 01:55 PM


Re: PERL_ROOT - Need info how it works
Rathna N wrote:
>
> On Mon, 28 Mar 2005 03:05:10 -0800, John W. Krahn <krahnj@telus.net> wrote
:
> 
>
> I observed this behavior on Windows, Linux and NetWare.

'D:/' would make little sense on Linux and IIRC on NetWare either?  (Unless
you have the directory D: in the current directory, for example
/home/rathna/D:.)  The documentation says that it affects the @INC path but
your example doesn't reference the @INC path.


John
--
use Perl;
program
fulfillment

Report this thread to moderator Post Follow-up to this message
Old Post
John W. Krahn
03-28-05 08:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:49 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.