Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Read Excel file via Perl

by alexander_lunev (Pilgrim)
on Sep 17, 2018 at 18:00 UTC ( [id://1222529]=note: print w/replies, xml ) Need Help??


in reply to Re: Read Excel file via Perl
in thread Read Excel file via Perl

PWD in $ENV{'PWD'} is not a pwd command, but an environment variable in %ENV hash, which contains current dir on Windows and on *nix systems. So the line  push(@INC, $ENV{'PWD'}."/lib"); will correctly add current dir to @INC array in both worlds.

Replies are listed 'Best First'.
Re^3: Read Excel file via Perl
by thanos1983 (Parson) on Sep 17, 2018 at 18:28 UTC

    Hello alexander_lunev,

    You are right I did not know that this works also on LinuxOS.

    Sample:

    #!/usr/bin/perl use strict; use warnings; print "\$ENV{PWD} is:\t" . $ENV{PWD} . "\n";

    Thanks for correcting me. BR

    Seeking for Perl wisdom...on the process of learning...not there...yet!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1222529]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-26 00:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found