PipelineFX Forum
Qube! => Developer Customization => Topic started by: Achilles on May 07, 2010, 07:12:06 AM
-
# All jobs which are owned by user "yuna" or "tidus"
#
# my $filter = {};
# my $filter->{"user"} = ["yuna","tidus"];
#
the second "my $filter" will reinitialize $filter.
there is a var $fileds initialized. but never used.
my $fields = ["subjobs"];
- Thomas
-
Actually, you need to define the hash before you can assign a value to a specific key.
-
use strict;
my $filter = {};
my $filter->{"user"} = ["yuna","tidus"];
is giving me:
# perl test.pl
Can't use an undefined value as a HASH reference at test.pl line 4.
Perl 5.8.8 (Centos 5.4)
-
lose the 'my' declaration on the hash assignment line:
use strict;
my $filter = {};
$filter->{"user"} = ["yuna","tidus"];
-
my intention was to say:
if you provide examples - provide working examples.
- Thomas