Re: Set up env variables on Linux

2007-06-13 Thread Madan Kumar Nath
Hello,     "cd" does not work as expected in perl.     use chdir instead and it will do what u want .     ex : chdir  "dest_folder"  # go to directory     system("ls ")  # do what u want.     chdir "orignal_folder"  # come back to orignal dir Thanx

Re: Regarding files

2007-05-20 Thread Madan Kumar Nath
Hello, Since you are having the whole file in an array.     1. Keep an index to specify the current line read     2. Once you found the desired string, you have the index also. So you can     decrement the index and get the lines. $inex = 0; foreach $line (@lines) { $index++; if($l

Re: pass variable to another program

2007-05-18 Thread Madan Kumar Nath
Hello,    passing data /  ( or sharing data, information ) between two processes can be done 1. Writing the content in one file from 1st process and then reading from second process.     you can do it, using simple text file or using seriallization. 2. Second way is through sockets. Once

Re: Question about a class

2007-03-19 Thread Madan Kumar Nath
Hi Jm, 1. If you use $class->speak(@_), the programe will go to infineite loop. because of recursive call. 2. The example is to demostrate, how to call the method of a class immediately up in the class hirarchy. Hope it helps Madan Jm lists wrote: Hello, Consi

Re: Question about system call

2007-03-13 Thread Madan Kumar Nath
Hello, 1. Check that the "rm" command is not mapped to "rm -i" or similar alias. if so them the "rm -f" command from system() command will not work. Thanx Madan Mathew wrote: I recently forgot about the unlink function and had been trying to remove files using the less effic

Re: What's the Perl equivalent of this PHP contruct?

2007-03-01 Thread Madan Kumar Nath
Hello , Are you trying to dump the data from perl and then read it in php. ? Madan Randall wrote: you'll need to write both PHP arrays as hashes in Perl Thanks for the help, but it didn't work at all :-( nothing could be read from the PHP side. Any ideas? -- To unsubscri