Re: Perl Questions

2009-10-04 Thread Tim Bowden
On Sun, 2009-10-04 at 15:03 -0700, Slick wrote: > I have a couple of questions. > > What is a good starter perl book to learn perl. Best learning Perl book is 'Learning Perl'. Also known as the Lama book. There are other good texts also, but imho that is by far the best. > > Secondly, I am

Re: Perl Questions

2009-10-04 Thread Shawn H Corey
Slick wrote: > I have a couple of questions. > > What is a good starter perl book to learn perl. > > Secondly, I am kinda having trouble assimilating all the perl information. I > want to know ways that you all remember the format of a script as well as the > main items that are normally use

Re: Tips and Tricks?

2009-10-04 Thread Shawn H Corey
Slick wrote: > I tried that, and the programs I am using worked before I put my code > where the code needed to be, but it did not run. However if did the > code without that template it worked. > > Jason H. Owens I'm sorry. My mother tongue is English. I do not understand what you are sayin

Perl Questions

2009-10-04 Thread Slick
I have a couple of questions. What is a good starter perl book to learn perl. Secondly, I am kinda having trouble assimilating all the perl information. I want to know ways that you all remember the format of a script as well as the main items that are normally use. I know about the Scalars

Re: Tips and Tricks?

2009-10-04 Thread Robert H
On 10/4/09 2:51 PM, Shlomi Fish wrote: Hi Slick! On Sunday 04 Oct 2009 20:02:36 Slick wrote: I am new at this perl thing. I just want to know tips and simple scripting. I also use strawberry perl for my program. Strawberry Perl is a very fine choice for Perl on Windows - probably better t

Re: Change character code 160 to 32

2009-10-04 Thread Shawn H Corey
Mike Flannigan wrote: > > Shawn H Corey wrote: >> Use the hex notation: >> >> perl -i -ple 'tr/\xA0/\x20/' >> > > Thank you. Much appreciated. I do like > that much better. > > Someday I'll know hexidecimal better. Right > now it's got a little magic for me. > > > Mike If you're on Lin

Re: Tips and Tricks?

2009-10-04 Thread Shawn H Corey
Shlomi Fish wrote: > For a comprehensive site with many links to beginner-friendly Perl resources > see: > > http://perl-begin.org/ Another on-line resource: http://perldoc.perl.org/ perldoc is an executable that comes with Perl and displays Perl dicumentation. In a command prompt, type: perld

Re: Change character code 160 to 32

2009-10-04 Thread Mike Flannigan
Shawn H Corey wrote: Use the hex notation: perl -i -ple 'tr/\xA0/\x20/' Thank you. Much appreciated. I do like that much better. Someday I'll know hexidecimal better. Right now it's got a little magic for me. Mike -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For addit

Re: Tips and Tricks?

2009-10-04 Thread Shlomi Fish
Hi Slick! On Sunday 04 Oct 2009 20:02:36 Slick wrote: > I am new at this perl thing. I just want to know tips and simple scripting. > I also use strawberry perl for my program. > Strawberry Perl is a very fine choice for Perl on Windows - probably better than ActivePerl by now. For a compreh

Re: Tips and Tricks?

2009-10-04 Thread Shawn H Corey
Slick wrote: > I am new at this perl thing. I just want to know tips and simple scripting. > I also use strawberry perl for my program. 1. Create a folder for trying Perl: md C:\TRY (In Linux: mkdir ~/try ) 2. Create a file in your try folder called template.pl and load the following in it.

Re: Tips and Tricks?

2009-10-04 Thread rodrick brown
The builtun module Data::Dumper is very essential when working with data complez structures. Use strict is very useful for catching programming and user errors Sent from my iPhone 3GS. On Oct 4, 2009, at 2:02 PM, Slick wrote: I am new at this perl thing. I just want to know tips and simple

Tips and Tricks?

2009-10-04 Thread Slick
I am new at this perl thing. I just want to know tips and simple scripting. I also use strawberry perl for my program. Thanks Jason H. Owens

Re: Change character code 160 to 32

2009-10-04 Thread John W. Krahn
Mike Flannigan wrote: I want to change character code 160 to character code 32 throughout a bunch of text files. I'm using this right now s/(.)/ord($1) == '160' ? chr(32) : $1 /eg; Here you are using the decimal numbers 160 and 32. This is very inefficient as you are searching for *every* c

Re: Change character code 160 to 32

2009-10-04 Thread Shlomi Fish
On Sunday 04 Oct 2009 17:53:24 Mike Flannigan wrote: > I want to change character code 160 to character > code 32 throughout a bunch of text files. I'm using > this right now > s/(.)/ord($1) == '160' ? chr(32) : $1 /eg; > and it works, but I don't like it much. If anybody > has another way they l

Re: Compressed data embedded in script

2009-10-04 Thread Uri Guttman
> "BH" == Bryan Harris writes: BH> I have about 60 MB of text data I want to include at the bottom of BH> a script. BH> 60 MB is too big for us, but compressed it would be probably only BH> 3-6 MB which is much better. Is there any way to put gzipped data BH> in the DATA section o

Re: Change character code 160 to 32

2009-10-04 Thread Shawn H Corey
Mike Flannigan wrote: > > I want to change character code 160 to character > code 32 throughout a bunch of text files. I'm using > this right now > s/(.)/ord($1) == '160' ? chr(32) : $1 /eg; > and it works, but I don't like it much. If anybody > has another way they like better, I'd appreciate >

Change character code 160 to 32

2009-10-04 Thread Mike Flannigan
I want to change character code 160 to character code 32 throughout a bunch of text files. I'm using this right now s/(.)/ord($1) == '160' ? chr(32) : $1 /eg; and it works, but I don't like it much. If anybody has another way they like better, I'd appreciate seeing it. It does not have to be a

Compressed data embedded in script

2009-10-04 Thread Bryan Harris
I have about 60 MB of text data I want to include at the bottom of a script. 60 MB is too big for us, but compressed it would be probably only 3-6 MB which is much better. Is there any way to put gzipped data in the DATA section of a script, and conveniently read it? I'd also prefer that my s