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>