Re: Printing the contents of an array

2009-10-23 Thread Jim Gibson
At 11:21 AM +0530 10/23/09, pradeepkumar.sura...@wipro.com wrote: Hi, The contents in my array looks like this... change_id=B77_ip_sync_idl state=released customer_rel=B77 change_name=ip_vke_sync short_description=This feature introduces the Sync idl. planned_baseline=B77_135.00

Building a fmt line for printf with a carriage return

2009-10-23 Thread Wagner, David --- Senior Programmer Analyst --- CFS
I thought I had done this before, but I guess not. I build a formt line for printf like: q[%-3s%-4s%5s%6s]; But I want to insert a carriage return after say %-4s( I have a nubmer of fields and depending on the size, it is not a constant after column 2, but could

xml simple question

2009-10-23 Thread getget
Hi All. When using XML::Sample, I have a question, who can help me. First I have output.xml file: ?xml version=1.0? memo applications multimedia applicationMp3 converter/application applicationReal player/application /multimedia office applicationMicrosoft

Re: xml simple question

2009-10-23 Thread Shawn H Corey
getget wrote: The content of 2 files output.xml and input.xml are different. How can I create the output file its content the same with input.xml. Use a different parser than XML::Simple. I suggest XML::Twig. XML::Simple does not distinguish between attributes and content. Because of this, it

Re: Building a fmt line for printf with a carriage return

2009-10-23 Thread Shawn H Corey
Wagner, David --- Senior Programmer Analyst --- CFS wrote: I thought I had done this before, but I guess not. I build a formt line for printf like: q[%-3s%-4s%5s%6s]; But I want to insert a carriage return after say %-4s( I have a nubmer of fields and depending on

Re: xml simple question

2009-10-23 Thread Shlomi Fish
On Friday 23 Oct 2009 15:16:15 Shawn H Corey wrote: getget wrote: The content of 2 files output.xml and input.xml are different. How can I create the output file its content the same with input.xml. Use a different parser than XML::Simple. I suggest XML::Twig. XML::Simple does not

Question about split

2009-10-23 Thread sanket vaidya
Hi, Consider the code below: use warnings; use strict; my $string = '100955 BLow-Gomez,Joseph MMEX.AMER. QHUTC012'; my ($id) = split(/\s/,$string); print id = $id; Output: 100955 Now remove brackets surrounding $id like as under: use warnings; use strict; my

Re: Question about split

2009-10-23 Thread John W. Krahn
sanket vaidya wrote: Hi, Hello, Consider the code below: use warnings; use strict; my $string = '100955 BLow-Gomez,Joseph MMEX.AMER. QHUTC012'; my ($id) = split(/\s/,$string); print id = $id; Output: 100955 Now remove brackets surrounding $id like as under: use warnings; use strict;