[Perl-unix-users] Random number

2008-01-30 Thread Gary Yang
Hi, I need to get a random number whenever the perl script is called. Each time the random number I got should be different. I use that number to name generated files, i.e. I want the perl script to generate different file names whenever it is called. Can someone tell me how to get the di

[Perl-unix-users] Prompt to enter password. How to make entered password invisible?

2008-01-27 Thread Gary Yang
Hi, The script bellow prompt user to enter login password. But, when I enter the passwd at prompt, it shows me the passwd I typed. How to make the passwd invisible while I'm typing the passwd? print "\nPlease Enter login passwd: "; chomp($passwd = ); I greatly appreciate you

[Perl-unix-users] Questions of porting Perl from Unix to Windows

2008-01-24 Thread Gary Yang
Hi All, I need to port my Perl script from Unix to Windows. Can someone tell me how to figure out which platform I am on? i.e. I need to know which Perl command can help me determin the platform. Once I know the platform, I'll code my script as the example bellow. But, how to figure out I am o