in reply to Re: Still having problems with user 'backup' script
in thread Still having problems with user 'backup' script

If you use use strict;, you have to declare all variables with 'my',

That's a bit of an over-simplification. See the discussion of use strict 'vars' in perldoc strict.

This generates a compile-time error if you access a variable that wasn't declared via our or use vars, localized via my(), or wasn't fully qualified.

Using my is only one of a number of ways to satisfy use strict 'vars' - albeit the most common.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

  • Comment on Re^2: Still having problems with user 'backup' script