vietgang has asked for the wisdom of the Perl Monks concerning the following question:

Right now, I am working on the project using ARGV like set random number for input. perl set_victim.pl Alex After running that script, it will set random number for that input like 'Alex 1' then export to file After that, I run perl get_victim.pl -> it will run random number from file, export the name with that number and pop out to avoid calling it again like 1 Alex or 2 Brian Can I have any ideas how to set random numbers for ARGV from users? Then, retrieve random number from file returning info name with that number.

Replies are listed 'Best First'.
Re: Set Name with number in ARGV
by Marshall (Canon) on May 03, 2017 at 01:54 UTC
    Hi vietgang!

    Welcome to the Monastery!

    Your question sounds a lot like a homework assignment.
    If that is so, then your best bet is to admit that you are working on homework, and show the code that you have written so far. And then ask specific questions about your code that you don't understand.

    From your posted problem description, I am not sure what your program is even supposed to do because the specifications are not clear.

Re: Set Name with number in ARGV
by Anonymous Monk on May 02, 2017 at 21:46 UTC
    Do the same thing you're already doing?