We don't bite newbies here... much | |
PerlMonks |
Re: Firebird databases backup scriptby Anonymous Monk |
on Feb 28, 2012 at 13:57 UTC ( [id://956669]=note: print w/replies, xml ) | Need Help?? |
Don't shell out to cd, use chdir single quotes do not interpolate, so print 'cd $fbbin' prints literally cd $fbbin not cd /opt/firebird/bin This is where you syntax error was, you were missing a closing single quote Don't do localtime date math yourself, use strftime
Don't shell out to ls, use glob function, so my @files = glob "*.$type"; Thats it :)
In Section
Seekers of Perl Wisdom
|
|