$ cat config.pl # This is config.pl mirror => 'http://www.nl.example.com/mirror', path => '/var/www/example', skip_files => [ 'png', 'gif', 'jpg' ], $ cat script.pl # This is script.pl use strict; my %config = do 'config.pl'; chdir $config{path}; $ perl script.pl $ perl -w script.pl Odd number of elements in hash assignment at script.pl line 3. Use of uninitialized value in list assignment at script.pl line 3. Use of uninitialized value $config{"path"} in chdir at script.pl line +4. $
In reply to Re: Including files
by jidanni
in thread Including files
by Juerd
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |