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,645
    Likes Received:
    87
    Trophy Points:
    48
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    Yes, it is possible
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice