1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Running Commands from a perl file in random order

Discussion in 'Perl' started by sd_charger, Aug 19, 2011.

  1. sd_charger

    sd_charger New Member

    Joined:
    Aug 19, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    Yes, it is possible
     

Share This Page