aioan1 has asked for the wisdom of the Perl Monks concerning the following question:
my $sef1=$mw1->BrowseEntry(-variable=>\$it1,-width=>22, -state=>'reado +nly', -browsecmd=>\&tura)->place(-x=>250,-y=>53); sub tura{ my $client=MongoDB::MongoClient->new("host"=>"10.9.602.179:27017") +; my $db=$client->get_database("test"); my $col_tura=$db->get_collection('atco_data')->find({"unit_id" => +"1" , "nume"=>"$it1"}, {"tura"=>1}); my @cursor_tura=$col_tura->all; my $tura=$cursor_tura[0]->{'tura'}; print "$tura\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: variable access
by choroba (Cardinal) on Jan 06, 2015 at 09:57 UTC | |
by aioan1 (Acolyte) on Jan 06, 2015 at 11:39 UTC | |
|
Re: variable access
by marto (Cardinal) on Jan 06, 2015 at 09:58 UTC | |
by aioan1 (Acolyte) on Jan 06, 2015 at 12:21 UTC | |
by AnomalousMonk (Archbishop) on Jan 06, 2015 at 17:52 UTC | |
by Anonymous Monk on Jan 06, 2015 at 20:02 UTC | |
by AnomalousMonk (Archbishop) on Jan 07, 2015 at 00:18 UTC | |
by aioan1 (Acolyte) on Jan 06, 2015 at 22:35 UTC | |
|
Re: variable access
by Anonymous Monk on Jan 06, 2015 at 10:19 UTC | |
by aioan1 (Acolyte) on Jan 06, 2015 at 12:27 UTC | |
by Anonymous Monk on Jan 06, 2015 at 19:55 UTC |