Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Run perl script from do file
From 
 
"David Radwin" <[email protected]> 
To 
 
<[email protected]> 
Subject 
 
st: Run perl script from do file 
Date 
 
Tue, 14 Aug 2012 15:06:40 -0700 (PDT) 
I don't know the answer about perl, but Stata can read Excel xml files,
after which you can use Stata commands to change the strings.
. xmluse filename.xml, doctype(excel) 
Also, it is good etiquette to use a new subject line for a new topic like
this. I changed the subject line on your behalf.
David
--
David Radwin
Senior Research Associate
MPR Associates, Inc.
2150 Shattuck Ave., Suite 800
Berkeley, CA 94704
Phone: 510-849-4942
Fax: 510-849-0794
www.mprinc.com
> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of tashi lama
> Sent: Tuesday, August 14, 2012 2:43 PM
> To: [email protected]
> Subject: RE: st: CommandLineEmailer using gmail ??
> 
> Does Stata allow writing a perl script inside a do or ado file sth like
> following
> 
> being hh.ado
> program hh
> clear
> shell vi perl1
>    #!/usr/local/bin/perl
>     use strict;
>    ......
>    :wq
>    perl perl1
> ..........
> .......
> end
> 
> The reason is because I have a xml file( in excel format) which contains
> certain strings which need to be found and replaced with other strings.
I
> have a feeling since stata can't do that or limited, I am thinkingh to
use
> perl to accomplish it.
> 
> Thanx..
> 
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/