Re: Anyway to randomize sig files?
From Daniel Claflin <cla...@gwis2.circ.gwu.edu>
· alt.ascii-art
· 17 Dec 1994 22:02 · View full thread
· report
Kent Stefl Nassen kna...@cochrane.bus.umich.edu said on <16 Dec 1994 15:44:21 GMT>, in alt.ascii-art: I would like to thank you for posting this, but I have a slight problem with it. *sigh* It keeps choosing the same file every time. Whenever I run this, it always chooses the first file within the directory.... )+: *] #!/location/of/perl *] *] $home = "/your/home/directory"; *] srand(time|$$); *] @files = <$home/sigs/*>; ^^^^ Is there something that I could change this to so that it will choose a truely random file from it? Or will I need to use a different program to do it?.....(I'm just a beginner when it comes to coding and programing... so I'm still a bit ignorate here...) *] $this = $files[rand(@files)]; *] *] `cp $this $home/.signature`; Any suggestions would be much appreciated... Thanks, Dan (+: -- ________________________________________________________ / \ \ | \~~| THIS MESSAGE BROUGHT TO YOU BY: | \_/__| Daniel L. Claflin | /~\~~| <cla...@gwis2.circ.gwu.edu> | |\_/__| | \___/____________________________________________________/
Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,1bf4e46a52a72b7b X-Google-Attributes: gidf996b,public X-Google-ArrivalTime: 1994-12-17 14:02:55 PST Path: nntp.gmd.de!newsserver.jvnc.net!igor.rutgers.edu!rutgers!dziuxsolim.rutgers.edu!uunet!gwu.edu!claflin From: cla...@gwis2.circ.gwu.edu (Daniel Claflin) Newsgroups: alt.ascii-art Subject: Re: Anyway to randomize sig files? Date: 17 Dec 1994 22:02:55 GMT Organization: The George Washington University, Washington DC Lines: 38 Message-ID: <3cvn6f$4r...@cronkite.seas.gwu.edu> References: <345...@student.msu.edu> <3cppfl$mc...@cronkite.seas.gwu.edu> <3csckl$br...@lastactionhero.rs.itd.umich.edu> NNTP-Posting-Host: 128.164.127.252 X-Newsreader: TIN [version 1.2 PL2]
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this message.
This message was posted publicly to the newsgroup
alt.ascii-art
in 1994 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked.
The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can.
Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.
Report this message
Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.