Forums

OT: PERL

Started by Jim Thompson December 9, 2011
Is there a recommended "PERL for Dummies" book?  All I need it for is
searching and replacing mixed text and numeric strings using a text
editor (UltraEdit, editing PSpice libraries).

I have "Learning Perl" by Randal Schwartz, but it's way too deep into
stuff I don't need.

I guess what I need is a "cookbook" if such exists.

Suggestions?
		
                                        ...Jim Thompson
-- 
| James E.Thompson, CTO                            |    mens     |
| Analog Innovations, Inc.                         |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| Phoenix, Arizona  85048    Skype: Contacts Only  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon at http://www.analog-innovations.com |    1962     |
             
I love to cook with wine.     Sometimes I even put it in the food.
On Fri, 09 Dec 2011 10:01:36 -0700, Jim Thompson
<To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> wrote:

>Is there a recommended "PERL for Dummies" book? All I need it for is >searching and replacing mixed text and numeric strings using a text >editor (UltraEdit, editing PSpice libraries). > >I have "Learning Perl" by Randal Schwartz, but it's way too deep into >stuff I don't need. > >I guess what I need is a "cookbook" if such exists. > >Suggestions? > > ...Jim Thompson
http://www.dummies.com/store/product/Perl-For-Dummies-4th-Edition.productCd-0764537504.html What you obviously need is "Google For Dummies." John
John Larkin <jjlarkin@highNOTlandTHIStechnologyPART.com> wrote:

>On Fri, 09 Dec 2011 10:01:36 -0700, Jim Thompson ><To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> wrote: > >>Is there a recommended "PERL for Dummies" book? All I need it for is >>searching and replacing mixed text and numeric strings using a text >>editor (UltraEdit, editing PSpice libraries). >> >>I have "Learning Perl" by Randal Schwartz, but it's way too deep into >>stuff I don't need. >> >>I guess what I need is a "cookbook" if such exists. >> >>Suggestions? >> >> ...Jim Thompson > > >http://www.dummies.com/store/product/Perl-For-Dummies-4th-Edition.productCd-0764537504.html > >What you obviously need is "Google For Dummies."
That book didn't sell because nobody could find it :-) -- Failure does not prove something is impossible, failure simply indicates you are not using the right tools... nico@nctdevpuntnl (punt=.) --------------------------------------------------------------
On Fri, 09 Dec 2011 18:13:12 GMT, nico@puntnl.niks (Nico Coesel)
wrote:

>John Larkin <jjlarkin@highNOTlandTHIStechnologyPART.com> wrote: > >>On Fri, 09 Dec 2011 10:01:36 -0700, Jim Thompson >><To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> wrote: >> >>>Is there a recommended "PERL for Dummies" book? All I need it for is >>>searching and replacing mixed text and numeric strings using a text >>>editor (UltraEdit, editing PSpice libraries). >>> >>>I have "Learning Perl" by Randal Schwartz, but it's way too deep into >>>stuff I don't need. >>> >>>I guess what I need is a "cookbook" if such exists. >>> >>>Suggestions? >>> >>> ...Jim Thompson >> >> >>http://www.dummies.com/store/product/Perl-For-Dummies-4th-Edition.productCd-0764537504.html >> >>What you obviously need is "Google For Dummies." > >That book didn't sell because nobody could find it :-)
I found the Perl "dummies" book right away... I just wanted confirmation from PERL'ies ;-) ...Jim Thompson -- | James E.Thompson, CTO | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food.
On Dec 9, 12:26=A0pm, John Larkin
<jjlar...@highNOTlandTHIStechnologyPART.com> wrote:
> > http://www.dummies.com/store/product/Perl-For-Dummies-4th-Edition.pro... > > What you obviously need is "Google For Dummies." > > John
Why buy anything http://www.perl.org/books/beginning-perl/ ?
On Fri, 09 Dec 2011 10:01:36 -0700, Jim Thompson wrote:

> Is there a recommended "PERL for Dummies" book? All I need it for is > searching and replacing mixed text and numeric strings using a text > editor (UltraEdit, editing PSpice libraries). > > I have "Learning Perl" by Randal Schwartz, but it's way too deep into > stuff I don't need. > > I guess what I need is a "cookbook" if such exists. > > Suggestions?
The Perl tutorials are pretty good. I use Perl occassionally, and have never deeded anything beyond perldoc.perl.org. -- My liberal friends think I'm a conservative kook. My conservative friends think I'm a liberal kook. Why am I not happy that they have found common ground? Tim Wescott, Communications, Control, Circuits & Software http://www.wescottdesign.com
On Fri, 09 Dec 2011 13:26:26 -0600, Tim Wescott <tim@seemywebsite.com>
wrote:

>On Fri, 09 Dec 2011 10:01:36 -0700, Jim Thompson wrote: > >> Is there a recommended "PERL for Dummies" book? All I need it for is >> searching and replacing mixed text and numeric strings using a text >> editor (UltraEdit, editing PSpice libraries). >> >> I have "Learning Perl" by Randal Schwartz, but it's way too deep into >> stuff I don't need. >> >> I guess what I need is a "cookbook" if such exists. >> >> Suggestions? > >The Perl tutorials are pretty good. I use Perl occassionally, and have >never deeded anything beyond perldoc.perl.org.
Just discovered the site myself. Found some nice tutorials on just the part I need, find and replace strings (where the strings are variable length and content of mixed text and numerics). Provoked this morning by a need to process some PSpice netlists into a format readable by Cadence Virtuoso. ...Jim Thompson -- | James E.Thompson, CTO | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food.
On 12/09/2011 02:58 PM, Jim Thompson wrote:
> On Fri, 09 Dec 2011 13:26:26 -0600, Tim Wescott<tim@seemywebsite.com> > wrote: > >> On Fri, 09 Dec 2011 10:01:36 -0700, Jim Thompson wrote: >> >>> Is there a recommended "PERL for Dummies" book? All I need it for is >>> searching and replacing mixed text and numeric strings using a text >>> editor (UltraEdit, editing PSpice libraries). >>> >>> I have "Learning Perl" by Randal Schwartz, but it's way too deep into >>> stuff I don't need. >>> >>> I guess what I need is a "cookbook" if such exists. >>> >>> Suggestions? >> >> The Perl tutorials are pretty good. I use Perl occassionally, and have >> never deeded anything beyond perldoc.perl.org. > > Just discovered the site myself. Found some nice tutorials on just > the part I need, find and replace strings (where the strings are > variable length and content of mixed text and numerics). Provoked > this morning by a need to process some PSpice netlists into a format > readable by Cadence Virtuoso. > > ...Jim Thompson
Of course real men use AWK for that. ;) Cheers Phil Hobbs -- Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC Optics, Electro-optics, Photonics, Analog Electronics 160 North State Road #203 Briarcliff Manor NY 10510 845-480-2058 hobbs at electrooptical dot net http://electrooptical.net
On 12/9/2011 12:16 PM, Phil Hobbs wrote:
> On 12/09/2011 02:58 PM, Jim Thompson wrote: >> On Fri, 09 Dec 2011 13:26:26 -0600, Tim Wescott<tim@seemywebsite.com> >> wrote: >> >>> On Fri, 09 Dec 2011 10:01:36 -0700, Jim Thompson wrote: >>> >>>> Is there a recommended "PERL for Dummies" book? All I need it for is >>>> searching and replacing mixed text and numeric strings using a text >>>> editor (UltraEdit, editing PSpice libraries). >>>> >>>> I have "Learning Perl" by Randal Schwartz, but it's way too deep into >>>> stuff I don't need. >>>> >>>> I guess what I need is a "cookbook" if such exists. >>>> >>>> Suggestions? >>> >>> The Perl tutorials are pretty good. I use Perl occassionally, and have >>> never deeded anything beyond perldoc.perl.org. >> >> Just discovered the site myself. Found some nice tutorials on just >> the part I need, find and replace strings (where the strings are >> variable length and content of mixed text and numerics). Provoked >> this morning by a need to process some PSpice netlists into a format >> readable by Cadence Virtuoso. >> >> ...Jim Thompson > > Of course real men use AWK for that. ;) > > Cheers > > Phil Hobbs >
I was going to say, linux has a lot of simpler solutions than going for a full blown Perl. Even SED can do a lot. Lex, yacc, lots of choices. IIRC Lex was Erik Schmidt's (google) contribution to the world of software. My issue with Perl is it has a lot of cryptic shortcuts. Fine for experts, but it makes studying existing code difficult.
On Fri, 09 Dec 2011 13:26:26 -0600, Tim Wescott <tim@seemywebsite.com>
wrote:

>On Fri, 09 Dec 2011 10:01:36 -0700, Jim Thompson wrote: > >> Is there a recommended "PERL for Dummies" book? All I need it for is >> searching and replacing mixed text and numeric strings using a text >> editor (UltraEdit, editing PSpice libraries). >> >> I have "Learning Perl" by Randal Schwartz, but it's way too deep into >> stuff I don't need. >> >> I guess what I need is a "cookbook" if such exists. >> >> Suggestions? > >The Perl tutorials are pretty good. I use Perl occassionally, and have >never needed anything beyond perldoc.perl.org.
I'm catching on. I can do a find with (text rather than Perl to illustrate)... space'multiple-characters-text-and-numbers'space (Note the single quote marks) I want to replace with... space{multiple-characters-text-and-numbers}space (Note curly brackets) When I try it in UltraEdit I get the curly brackets alright, but between them is replaced with the Perl "equation", rather than the original "multiple-characters-text-and-numbers". Is there a way to "capture" that, or is there another way to approach the problem? ...Jim Thompson -- | James E.Thompson, CTO | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food.