Sponsored Content
Top Forums UNIX for Advanced & Expert Users Passing Hash variable in to sql query in perl Post 302440939 by jam_prasanna on Thursday 29th of July 2010 02:43:06 AM
Old 07-29-2010
can any expert help me on this.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sql query variable not exactly unix

I know htis isnt exactly unix.... but hopefully someone can help me or direct me someplace to get help. I can run sql queries in scripts against my informix db using: dbaccess mydb myquery.sql >> sql.output I need to write my script to select based on todays date. Its very... (5 Replies)
Discussion started by: MizzGail
5 Replies

2. UNIX for Advanced & Expert Users

passing value to a variable in a SQL

Hi Folks, This is a small chunk of the bigger problem which i am facing and some help here will help me resolve the rest of the issue. Problem is that i need to pass the value of a variable from a shell script to a SQL query (infact a lot of SQL's) i have the following solution but somehow... (4 Replies)
Discussion started by: kamitsin
4 Replies

3. Shell Programming and Scripting

script variable within a sql query

I created a script to read a csv file with four columns. The script also saved values of each col in a arry. In the script, i connected to db try to run a query to pull out data baisc on the values from the csv file. select Num from tableName where Sec_Num in ('${isin}') /*isin is an arry... (1 Reply)
Discussion started by: Sherry_Run
1 Replies

4. Shell Programming and Scripting

Problem in Passing sql query for a script

Unix prompt ========= echo "Enter the query" read q ========== User has entered : SELECT * FROM employee ===================== Now the problem starts.. echo $q Output: SELECT "all files names in the PWD" FROM employee ================================================ ... (5 Replies)
Discussion started by: Niroj
5 Replies

5. Shell Programming and Scripting

passing a hash to another script in perl

I have a script (say script1.sh ) and I am calling a script (say script2.sh) within the script1.sh. Here in script1.sh I have a hash ( say %hash1) and i have to pass this hash to script2.sh. Basically i have to do some processing in Scirpt2.sh based on the hash(key,values). I wanted to know how can... (2 Replies)
Discussion started by: ammu
2 Replies

6. Shell Programming and Scripting

Passing a variable from shell script to mysql query?

I heard this was possible but from my research I haven't been able to figure it out yet. Seems it should be simple enough. Basically from a high level view I'm trying to accomplish... . $X='grep foo blah.log' then 'mysql command SELECT foo FROM bar WHERE ' . $X or something like that. ... (2 Replies)
Discussion started by: kero
2 Replies

7. Shell Programming and Scripting

perl - passing hash references to functions

hi there I have the following script in which i have created a PrintHash() function. I want to pass to this function the reference to a hash (in the final code i will be passing different hashes to this print function hence the need for a function). I am getting an error Type of arg 1 to... (1 Reply)
Discussion started by: hcclnoodles
1 Replies

8. Shell Programming and Scripting

Passing variable to sql

How to pass variable to sql file. Im tryin in two ways, Method 1: my.sql select * from table where col1 = '$1' and col2 = 'text'; Method 1execute: dbaccess database my.sql $var Method2: select * from table col1 in (`cat inputfile`) and col2 = 'text'; method... (2 Replies)
Discussion started by: Roozo
2 Replies

9. Shell Programming and Scripting

Passing value of variable to a query within shell script

I have a script in which i connect to database to run a query and get the result of the query to a temp file. This works fine , now what i want is there is flat file which contains the value to be used in the query. I want to read this file line by line and then run the query for each value in that... (7 Replies)
Discussion started by: gpk_newbie
7 Replies

10. Shell Programming and Scripting

Problem in passing IFS array to SQL Query

Hi, I have created a shell script that reads line from text file and insert into DB table. I have used IFS to separate the line text. Looks IFS is splitting text properly but while passing one of the values that has special characters in it to query, it is giving weird issue. Below is my... (2 Replies)
Discussion started by: yuvi
2 Replies
SOAP::WSDL::Deserializer::Hash(3pm)			User Contributed Perl Documentation		       SOAP::WSDL::Deserializer::Hash(3pm)

NAME
SOAP::WSDL::Deserializer::Hash - Deserializer SOAP messages into perl hash refs SYNOPSIS
use SOAP::WSDL; use SOAP::WSDL::Deserializer::Hash; DESCRIPTION
Deserializer for creating perl hash refs as result of a SOAP call. Output structure The XML structure is converted into a perl data structure consisting of hash and or list references. List references are used for holding array data. SOAP::WSDL::Deserializer::Hash creates list references always at the maximum depth possible. Examples: XML: <MyDataArray> <MyData>1</MyData> <MyData>1</MyData> </MyDataArray> Perl: { MyDataArray => { MyData => [ 1, 1 ] } } XML: <DeepArray> <MyData><int>1<int>/MyData> <MyData><int>1<int>/MyData> </DeepArray> Perl: { MyDataArray => { MyData => [ { int => 1 }, { int => 1 } ] } } List reference creation is triggered by the second occurance of an element. XML Array types with one element only will not be represented as list references. USAGE
All you need to do is to use SOAP::WSDL::Deserializer::Hash. SOAP::WSDL::Deserializer::Hash autoregisters itself for SOAP1.1 messages You may register SOAP::WSDLDeserializer::Hash for other SOAP Versions by calling SOAP::Factory::Deserializer->register('1.2', SOAP::WSDL::Deserializer::Hash) Limitations o Namespaces All namespaces are ignored. o XML attributes All XML attributes are ignored. Differences from other SOAP::WSDL::Deserializer classes o generate_fault SOAP::WSDL::Deserializer::Hash will die with a SOAP::WSDL::Fault11 object when a parse error appears METHODS
deserialize Deserializes the message. generate_fault Generates a SOAP::WSDL::SOAP::Typelib::Fault11 object and returns it. LICENSE AND COPYRIGHT
Copyright 2004-2008 Martin Kutter. This file is part of SOAP-WSDL. You may distribute/modify it under the same terms as perl itself. AUTHOR
Martin Kutter <martin.kutter fen-net.de> REPOSITORY INFORMATION
$Rev: 851 $ $LastChangedBy: kutterma $ $Id: Hash.pm 851 2009-05-15 22:45:18Z kutterma $ $HeadURL: https://soap-wsdl.svn.sourceforge.net/svnroot/soap-wsdl/SOAP-WSDL/trunk/lib/SOAP/WSDL/Deserializer/Hash.pm $ perl v5.10.1 2010-12-21 SOAP::WSDL::Deserializer::Hash(3pm)
All times are GMT -4. The time now is 02:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy