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!