[Chicago-talk] Script comments

Young, Darren Darren.Young at ChicagoGSB.edu
Wed Jan 18 11:04:44 PST 2006


>     my @cmd = 
>     (
>         $imsbkpcmd,
>         '-f-',
>         "/$hostname/$group",
>         '>',
>         "$bkpdest/$group"
>     );
> 
>     system @cmd unless $debug_mode;
> 
> If this is getting passed to system it'll be cleaner
> in most cases to just leave it as a list:

Oh, that is sooo much cleaner. Completely forgot that way of using
system(). This is what stinks about only wrting Perl between
outages/upgrades/projects, I forget way too much.

Darren


More information about the Chicago-talk mailing list