Thanks Rob for your reply... My problem is :the values i pick up from is actually not a file.(Sorry about that)
The values are stored as an array of structs as key value pairs i.e /thus/axioss/serviceID:123456 /thus/axioss/supplierProduct:Test Stream 100 /thus/axioss/web/installationTelephoneNumber:020837111663 I hope i am being clear now. ---------------------------------------------------------------------------- ---------------- regards, Ajitpal Singh, -----Original Message----- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: 12 February 2004 20:53 To: [EMAIL PROTECTED] Subject: Re: RE:help on picking up key & values Ajit P Singh wrote: > > Comrades, > > > I have a function which takes up arguments as shown below: > > $str = "./place_order -t " . > "/thus/axioss/serviceID:\"" . $self->{serviceID} . "\" " . > "/thus/axioss/supplierProduct:\"" . $self->{supplierProduct} . "\" " > . > "/thus/axioss/web/installationTelephoneNumber:\"" . > $self->{installationTelephoneNumber} . "\n"; > > My problem is to get away with the hard coded values i.e > /thus/axioss/serviceID:,/thus/axioss/supplierProduct:, and > /thus/axioss/web/installationTelephoneNumber: > > I am fetching the above arguments from a file which contains these values as > shown below. > > /thus/axioss/serviceID:123456 > /thus/axioss/supplierProduct:BT IPStream 500 > /thus/axioss/web/installationTelephoneNumber:020837111663 > > How can I do away with the hard coded keys? > > Thanks in advance.. How is this 'RE:help on picking up key & values'? It's not clear what your problem is. You need to - Open the file - Read its records - Close it - Build your string from the data read What can't you do? Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>