![]() Seeking advice on text editors to use with Stata. Wagstaff, Pennsylvania State Universityįredrik Wallenberg, University of California, BerkeleyĮmail addresses are given in the form joanna.smith at whereever.whateverĪnd so should be translated to FAQ is intended primarily for users of the statistical software Wade, US Environmental Protection Agencyĭavid A. Sieswerda, Thunder Bay District Health Unit Jean Ries, Université Catholique de Louvain Masterov, University of Michigan Stephen McKay, University of Bristol Lauritsen, Odense University Hospitalĭimitriy V. John Kalat, Washington State Dept of Labor and Industries Glenn Hoetker, University of Illinois at Urbana-Champaignīenjamin Hulley, National Institutes of Health Rosa Gini, Agenzia Regionale di Sanit della Toscana Start with the Perl home page and go from there.Some notes on text editors for Stata users Some notes on text editors for Stata users Lotsa good references on line for Perl, and it's free. You may need to learn how to code any "special" characters - basically, anything you're searching for apart from A to Z, a to z and 0 to 9 needs to have a backslash in front of it. (One cool thing about Perl: numbers are strings too, at least if you're looking for them they're only numbers if you have to use an arithmetic operator on them.) Replace the words "search" and "replace" with the strings you're actually looking for. ![]() Open(MYFILE, ">$outfile") || die "Failed opening output \n" Open(FILE, $file) || die "Failed opening input = Use Perl - this is modified from a script I wrote that does the same thing, opening a file (referred to here as "your_input_file.ext"), reading in each line one by one, substituting one string with another, and then writing each line to "your_output_file.ext" with the new text in place of the old text: Is it broken up into individual lines w CR/LF or equivalent?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |