sawoy has asked for the wisdom of the Perl Monks concerning the following question:
$ cat ./conf.conf $a = 'a'; $ cat ./test.pl #!/usr/bin/perl use strict; use warnings; my $file = 'conf.conf'; do $file; if ($! || $@) { die("Can't load $file due: '$!' or '$@'"); } exit 0;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: do-ing of file without \n at the end
by sgifford (Prior) on Mar 30, 2007 at 16:43 UTC | |
by sawoy (Initiate) on Mar 31, 2007 at 04:38 UTC | |
by sgifford (Prior) on Mar 31, 2007 at 06:31 UTC | |
by ikegami (Patriarch) on Apr 02, 2007 at 00:34 UTC | |
|
Re: do-ing of file without \n at the end
by Old_Gray_Bear (Bishop) on Mar 30, 2007 at 16:39 UTC | |
|
Re: do-ing of file without \n at the end
by mreece (Friar) on Mar 30, 2007 at 17:04 UTC | |
by sawoy (Initiate) on Mar 30, 2007 at 17:38 UTC |