RE: word substitute with character count.

2009-06-19 Thread Wagner, David --- Senior Programmer Analyst --- CFS
-Original Message- From: Nisse Tuta [mailto:nisset...@gmail.com] Sent: Thursday, June 18, 2009 15:12 To: beginners@perl.org Subject: word substitute with character count. Hi all, I'm having a problem solving this one. I need to replace/substitute a word in a text file. The

recurive chown with perl chown

2009-06-19 Thread Harry Putnam
How to manage a recursive chown using perl function chown? Do I have to employ something like File::Find to recursively chown a directory heirarchy. Or maybe opendir and readdir... Or is there some simpler way? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional

RE: recurive chown with perl chown

2009-06-19 Thread Andrew Curry
http://www.perlmonks.org/?node_id=202898 may be of use. -Original Message- From: news [mailto:n...@ger.gmane.org] On Behalf Of Harry Putnam Sent: 19 June 2009 14:36 To: beginners@perl.org Subject: recurive chown with perl chown How to manage a recursive chown using perl function chown?

Re: recurive chown with perl chown

2009-06-19 Thread Chas. Owens
On Fri, Jun 19, 2009 at 09:35, Harry Putnamrea...@newsguy.com wrote: How to manage a recursive chown using perl function chown? Do I have to employ something like File::Find to recursively chown a directory heirarchy.  Or maybe opendir and readdir... Or is there some simpler way? snip

Re: recurive chown with perl chown

2009-06-19 Thread Harry Putnam
Chas. Owens chas.ow...@gmail.com writes: On Fri, Jun 19, 2009 at 09:35, Harry Putnamrea...@newsguy.com wrote: How to manage a recursive chown using perl function chown? Do I have to employ something like File::Find to recursively chown a directory heirarchy.  Or maybe opendir and readdir...

Re: recurive chown with perl chown

2009-06-19 Thread Harry Putnam
Chas. Owens chas.ow...@gmail.com writes: On Fri, Jun 19, 2009 at 09:35, Harry Putnamrea...@newsguy.com wrote: How to manage a recursive chown using perl function chown? Do I have to employ something like File::Find to recursively chown a directory heirarchy.  Or maybe opendir and readdir...

Re: recurive chown with perl chown

2009-06-19 Thread Jim Gibson
On 6/19/09 Fri Jun 19, 2009 8:44 AM, Harry Putnam rea...@newsguy.com scribbled: Chas. Owens chas.ow...@gmail.com writes: On Fri, Jun 19, 2009 at 09:35, Harry Putnamrea...@newsguy.com wrote: How to manage a recursive chown using perl function chown? Do I have to employ something like

Re: recurive chown with perl chown

2009-06-19 Thread Chas. Owens
On Jun 19, 2009, at 11:44, Harry Putnam rea...@newsguy.com wrote: Chas. Owens chas.ow...@gmail.com writes: On Fri, Jun 19, 2009 at 09:35, Harry Putnamrea...@newsguy.com wrote: How to manage a recursive chown using perl function chown? Do I have to employ something like File::Find to

@ in string messing me up, noob help

2009-06-19 Thread Scott
I am learning perl and my code is using strict. I thought it would help me learn better then being sloppy. I am trying to connect to a sql database and my password contains a @ in the middle of the word so my $pass = p...@word; its killing my script and i cant seem to find anything on the

Re: @ in string messing me up, noob help

2009-06-19 Thread John W. Krahn
Scott wrote: I am learning perl and my code is using strict. I thought it would help me learn better then being sloppy. I am trying to connect to a sql database and my password contains a @ in the middle of the word so my $pass = p...@word; its killing my script and i cant seem to find

Re: @ in string messing me up, noob help

2009-06-19 Thread Chas. Owens
On Fri, Jun 19, 2009 at 14:03, Scotttacogrand...@hotmail.com wrote: I am learning perl and my code is using strict. I thought it would help me learn better then being sloppy. I am trying to connect to a sql database and my password contains a @ in the middle of the word so my $pass =

split() and trailing empties

2009-06-19 Thread Chap Harrison
I'm astonished I haven't encountered this until now (or at least, noticed it until now): by default, split() silently doesn't return trailing empty strings! I've since learned about setting the LIMIT parameter to -1. Thinking now that I should revisit every split() I've ever written. There