flock problem

2002-11-11 Thread Nisim, Amit
Hi All, flock doesn't work when I am running flock to file x from different machines. What I mean: I am running flock from machine XXX on file z If I try to write to file z from machine YYY I succeed. Do you know mechanism like flock that work on several machines ? Amit -- To unsubscribe

RE: splitting the string.

2002-03-21 Thread Nisim, Amit
just do $a ="abcdef"; @asplit = split //,$a; Amit -Original Message- From: Raja Gopal [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 8:41 AM To: [EMAIL PROTECTED] Subject: splitting the string. Hello Perl Experts, I want to split the string $a ="abcdef"; as @asplit =

time question

2002-02-04 Thread Nisim, Amit
Hi All, How can I check if directory is older then X days/hours thanks Amit -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

compare between two Associative Arrays

2002-01-02 Thread Nisim, Amit
Hi All, I need to compare between two Associative Arrays How can I do it ? Is there a better way then insert all values in regular arrays and to compare between the two ? Amit -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

compare between two arrays

2002-01-02 Thread Nisim, Amit
Hi All, I want to compare between two arrays. How can I do it ? One way I know is : $a = (join " ",@a); $b = (join " ",@b); if ($b eq $a) { print "equal";} I am looking for better way. thanks amit -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

RE: Remove a line - correction

2001-12-19 Thread Nisim, Amit
hi, perl -p -i -e 'undef $_ if //' Amit -Original Message- From: Prasanthi Tenneti [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 3:40 PM To: [EMAIL PROTECTED] Subject: Remove a line hi, how to remove a line from a file? pls help me. thank you. prasanthi. -- To

RE: Remove a line

2001-12-19 Thread Nisim, Amit
hi, perl -p -i -e 'undef $_ if /$line/' Amit -Original Message- From: Prasanthi Tenneti [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 3:40 PM To: [EMAIL PROTECTED] Subject: Remove a line hi, how to remove a line from a file? pls help me. thank you. prasanthi. --

How do I get username in Perl ?

2001-10-24 Thread Nisim, Amit
Hi All, I want to get the name of the user that run the script. How can I do it ? Amit -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]