Re: What is wrong with this script ??

2008-08-22 Thread Perry Smith
) ? --- On Thu, 8/21/08, Mr. Shawn H. Corey [EMAIL PROTECTED] wrote: From: Mr. Shawn H. Corey [EMAIL PROTECTED] Subject: Re: What is wrong with this script ?? To: Perry Smith [EMAIL PROTECTED] Cc: [EMAIL PROTECTED], beginners@perl.org Date: Thursday, August 21, 2008, 4:07 AM On Wed, 2008-08-20 at 17:25

Re: What is wrong with this script ??

2008-08-21 Thread Perry Smith
the ownsership are not shown or changed by the commnds given in the script ? Whats wrong, do let me know ? Any pointers ?? --- On Wed, 8/20/08, Perry Smith [EMAIL PROTECTED] wrote: From: Perry Smith [EMAIL PROTECTED] Subject: Re: What is wrong with this script ?? To: Mr. Shawn H. Corey [EMAIL PROTECTED

Re: What is wrong with this script ??

2008-08-20 Thread Perry Smith
On Aug 20, 2008, at 7:20 AM, Mr. Shawn H. Corey wrote: On Wed, 2008-08-20 at 05:16 -0700, Jyotishmaan Ray wrote: Dear All, I have a input file containing all the rolnos of 400 studenst. I have written a small perl script to create their home directories in the cluster server.

Bulk assignment to list of references

2008-08-19 Thread Perry Smith
My friend is trying to do this: #!/bin/perl $a = 1; $b = 2; $c = 3; @l = ( \$a, \$b, \$c ); # This is the line we need help with # Is there a way to tell Perl that @l[0] is a reference # and we want to assign what it refers to the number 4. # i.e. ${$l[0]} = 4; # but for the whole list in @l

Re: egrep

2008-08-19 Thread Perry Smith
On Aug 19, 2008, at 12:12 PM, nikhil mehra wrote: Hi, Can we use egrep in perl program which would just open a file and search a literal string using egrep. Cna some one help me with syntax. Thanks, -- Nikhil Mehra The only Constant in Life is CHANGE! Whether it is mainframe,

Re: Bulk assignment to list of references

2008-08-19 Thread Perry Smith
On Aug 19, 2008, at 1:43 PM, Paul Lalli wrote: On Aug 19, 11:16 am, [EMAIL PROTECTED] (Perry Smith) wrote: My friend is trying to do this: #!/bin/perl $a = 1; $b = 2; $c = 3; @l = ( \$a, \$b, \$c ); # This is the line we need help with # Is there a way to tell Perl that @l[0

Re: create the home directories of 424 students in a server machine

2008-08-19 Thread Perry Smith
On Aug 19, 2008, at 1:48 PM, Jyotishmaan Ray wrote: Dear All, I am a new bie in perl. I have to create the home directories of 424 students in a server machine. The path of the home directory would be :- /mnt/btech/formatted-rollno. where formatted-rollno =s08-1-5-097 And the input