From: Chris Nehren
> On Thu, Aug 16, 2012 at 00:05:56 +0200 , Jenda Krynicky wrote:
> > From: Chris Nehren
> > > On Tue, Aug 07, 2012 at 17:38:57 + , Thomas Dean wrote:
> > > > Hi there,
> > > >
> > > > I have succeeded in sending mail to my SMTP server with Mail::Sender
> > > > without SSL.
From: Lawrence Statton
To: Irfan Sayed
Cc: "beginners@perl.org"
Sent: Thursday, August 16, 2012 7:28 PM
Subject: Re: xml parsing
Okay -- I've looked at the attachment -- remember when I mentioned namespaces a
while back? This document uses one, so thi
Okay -- I've looked at the attachment -- remember when I mentioned
namespaces a while back? This document uses one, so things get more
complicated.
The solution I always use for this is to put the root element into an
XPath Context object and assign a prefix for the default namespace (I
wa
please find the attached xml file.
please suggest.
regards
irfan
The file attached does not match the sample XML file you included in
your email.
The string passed to findnodes() is called an "XPath Selector" - you
will need to adjust that to match the actual path of the elements you
On 08/16/2012 08:09 AM, Irfan Sayed wrote:
thanks. it worked
however, i cant give xml file path instead of all the contents in the start
tag<<
regards,
irfan
(BTW: The custom on this list is NOT to top post -- trim, and put your
replies at the BOTTOM of the email you are responding to)
Ca
thanks. it worked
however, i cant give xml file path instead of all the contents in the start tag
<<
regards,
irfan
From: Lawrence Statton
To: beginners@perl.org
Sent: Thursday, August 16, 2012 6:24 PM
Subject: Re: xml parsing
On 08/16/2012 07:46 AM, Irfan
On Thu, Aug 16, 2012 at 04:55:33AM -0700, Irfan Sayed wrote:
> hi,
>
> i need to parse the xml file and store the data in array :
>
> here is the code:
> use XML::Simple;
>
> my $ItemGroup = XMLin('C:\Users\bvcontrolbuild\Desktop\data.xml');
>
> foreach my $BuildProject (@{$ItemGroup->{BuildPro
On 08/16/2012 07:46 AM, Irfan Sayed wrote:
can you please give me sample code to store the xml contents to perl array
using LibXML
lets say xml files is as :
regards
irfan
I'm going to assume what you wanbt is the list of Included filenames...
#!/usr/bin/perl
use st
can you please give me sample code to store the xml contents to perl array
using LibXML
lets say xml files is as :
regards
irfan
From: Shlomi Fish
To: Irfan Sayed
Cc: "beginners@perl.org"
Sent: Thursday, August 16, 2012 6:07 PM
Sub
On Thu, 16 Aug 2012 10:55:03 +0200
Gergely Buday wrote:
> Notice that in order to put a literal backslash into a perl string,
> you should escape it. In your original program, you have put a \b, a
> bell character into the string.
Actually, "\b" is the backspace character. The bell or alarm char
Hi Irfan,
On Thu, 16 Aug 2012 04:55:33 -0700 (PDT)
Irfan Sayed wrote:
> hi,
>
> i need to parse the xml file and store the data in array :
>
> here is the code:
> use XML::Simple;
>
> my $ItemGroup = XMLin('C:\Users\bvcontrolbuild\Desktop\data.xml');
>
> foreach my $BuildProject (@{$ItemGrou
hi,
i need to parse the xml file and store the data in array :
here is the code:
use XML::Simple;
my $ItemGroup = XMLin('C:\Users\bvcontrolbuild\Desktop\data.xml');
foreach my $BuildProject (@{$ItemGroup->{BuildProject}}) {
print $BuildProject->{Include} . "\n";
}
and xml file is :
Awesome
thanks all for reply . got it
regards
irfan
From: midhun
To: Rob Coops
Cc: Gergely Buday ; Irfan Sayed ;
"beginners@perl.org"
Sent: Thursday, August 16, 2012 2:41 PM
Subject: Re: search and replace
The issue is
$cs_project = "C:\build.txt";
The issue is
$cs_project = "C:\build.txt"; ## In Double quotes takes the string as
C:build.txt.since its an escape character
That's the reason why Rob suggested to put the string in Single quotes.
Both Gergely and Rob are right.
Cheers,
Midhun
On Thu, Aug 16, 2012 at 2:29 PM, Rob Coops wrote
On Thu, Aug 16, 2012 at 10:55 AM, Gergely Buday wrote:
> Here is the correct version:
>
> #!/usr/bin/perl
>
> $csproj_text = "C:\\build.txt";
>
> $csproj_text =~ s/\\//g;
> print "$csproj_text\n";
>
> Notice that in order to put a literal backslash into a perl string,
> you should escape it.
Here is the correct version:
#!/usr/bin/perl
$csproj_text = "C:\\build.txt";
$csproj_text =~ s/\\//g;
print "$csproj_text\n";
Notice that in order to put a literal backslash into a perl string,
you should escape it. In your original program, you have put a \b, a
bell character into the stri
hi,
i have following code to search single "\" and replace it with "\\"
but it is not doing as expected:
$csproj_text = "C:\build.txt";
$csproj_text =~ s/\\//g;
print "$csproj_text\n";
the output is : "Cuild.txt"
instead the output should be : "C:\\build.txt"
can someone please suggest, wha
17 matches
Mail list logo