Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Perl (http://www.go4expert.com/forums/perl/)
-   -   Running Commands from a perl file in random order (http://www.go4expert.com/forums/running-commands-perl-file-random-t26527/)

sd_charger 19Aug2011 07:30

Running Commands from a perl file in random order
 
I am new to perl and was wondering if the following can be attempted on perl

I have set of commands which I have put in a text file. I want to run those commands in random order. Is it possible to assign an ID to each command and use some random number generator to use a random number. After number is generated the command agisnt that number is run

pradeep 30Aug2011 13:45

Re: Running Commands from a perl file in random order
 
Yes, it is possible


All times are GMT +5.5. The time now is 05:55.