|
Posted by Japhio on April 9, 2008, 10:21 am
Please log in for more thread options > Hi,
>
> I changed it to ( taking all pointers into account):
>
> my @args = ($User_Preferences, 'deploy', "--user=
> $User_Preferences","--passwordfile=
> $User_Preferences","--host=$User_Preferences","--
> port=$User_Preferences","$User_Preferences");
>
> system(@args) == 0 or die "system @args failed: $?"
[cut]
> Possible unintended interpolation of @args in string at
> remote_deploy.pl line 63.
> syntax error at remote_deploy.pl line 63, near "system"
^^^ Here is the nasty bit!
> Global symbol "@args" requires explicit package name at
> remote_deploy.pl line 63.
> Global symbol "@args" requires explicit package name at
> remote_deploy.pl line 63.
> Execution of remote_deploy.pl aborted due to compilation errors.
>
There is a semicolon ';' missing after the line with system().
By the way, from the error message 'Global symbol "@args" requires
explicit package name' I infer that you use the strict pragma, which
is a good thing. Now learn to interpret the error messages ;-)
> Does not really help me as a newbie :-)
> Any ideas?
Keep on trying!
|