Re: RegExp Searching within

2009-01-07 Thread Hridyesh Pant
$_ = ""; while (/<(.*?)>(.*?)<\/\1>/g) { print "tag $1 which has $2 inside\n"; } Paul M wrote: Hi: Given the following list: I want to know all the "elements" within elem1. (Note: It is seriously MALFORMED XML, that is why I am attempting to use regexp). Any ideas. I can get $1

How to know no. of times the script has been executed?

2009-01-07 Thread sanket vaidya
Hi all, I want to do something like this. Invoke a cmd (using system command) print a welcome message & execute the remaining part of script. Now what I want is 1. cmd should only be invoked with welcome message if the script is executed first time. 2. I want the remaining part of script to

Re: Send email using smtp

2009-01-07 Thread Rob Dixon
Gunnar Hjalmarsson wrote: > Steve Bertrand wrote: >> Fúlvio Figueirôa wrote: >>> I solved my problem using sendmail with the code below: >>> >>> open (MAIL, "|/usr/sbin/sendmail -t "); >>> print MAIL "From: someaddr...@somedomain\n"; >>> print MAIL "To: someaddre...@somedomain\n"; >>> print MAIL "C

Re: make command throws error "Perl script no found" C:/Program No such file or directory

2009-01-07 Thread Rob Dixon
viji19812...@gmail.com wrote: > > I have perl5.10.0 installed under C:/ and using bash prompt to run a > make command. > > When I issue the make command it throws error > > "Perl Script not found" C:/Program no such file or directory > > Perl is not installed in Program files it under c: > > A

Re: recursively find and print non-ascii characters in file

2009-01-07 Thread Rob Dixon
Chas. Owens wrote: > On Wed, Jan 7, 2009 at 07:41, Anže Vidmar wrote: >> hello! >> >> I have some nasty, non-ascii character in some files that contains php code >> (actually somewhere in my SVN branch). What I want to do here is to >> recursively find all the files that contains a specific non-as

Re: recursively find and print non-ascii characters in file

2009-01-07 Thread Rob Dixon
Anže Vidmar wrote: > > I have some nasty, non-ascii character in some files that contains php > code (actually somewhere in my SVN branch). What I want to do here is > to recursively find all the files that contains a specific non-ascii > character in the file. And most importantly - i need

Re: Send email using smtp

2009-01-07 Thread Gunnar Hjalmarsson
Steve Bertrand wrote: Fúlvio Figueirôa wrote: I solved my problem using sendmail with the code below: open (MAIL, "|/usr/sbin/sendmail -t "); print MAIL "From: someaddr...@somedomain\n"; print MAIL "To: someaddre...@somedomain\n"; print MAIL "Content-Type: text/plain\n"; print MAIL "Subject: Ve

Re: recursively find and print non-ascii characters in file

2009-01-07 Thread Chas. Owens
On Wed, Jan 7, 2009 at 07:41, Anže Vidmar wrote: > hello! > > I have some nasty, non-ascii character in some files that contains php code > (actually somewhere in my SVN branch). What I want to do here is to > recursively find all the files that contains a specific non-ascii character > in the fil

recursively find and print non-ascii characters in file

2009-01-07 Thread Anže Vidmar
hello! I have some nasty, non-ascii character in some files that contains php code (actually somewhere in my SVN branch). What I want to do here is to recursively find all the files that contains a specific non-ascii character in the file. And most importantly - i need to know the name of

Re: make command throws error "Perl script no found" C:/Program No such file or directory

2009-01-07 Thread viji19812001
On Jan 6, 5:32 pm, rc...@pcug.org.au (Owen) wrote: > > Hi, > > > I have perl5.10.0 installed under C:/ and using bash prompt to run a > >makecommand. > > How are you doing that? > > Installed perl online. And Under C:/cygwin/bash.exe takes me to bash > prompt.there i issue a make command which