Created
March 6, 2017 23:24
-
-
Save pokisin/5702ba8e964afcf53b5ba39478702a12 to your computer and use it in GitHub Desktop.
Utilerias Perl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------- Para usar archivo .pm con ruta relativa ------------------------------------------------------ | |
use FindBin qw($Bin); # /home/proyecto/scripts | |
use File::Basename qw(dirname); # /home/proyecto | |
use File::Spec::Functions qw(catdir); | |
use lib catdir(dirname($Bin),'reportes'); # /home/proyecto/reportes | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment