Re: Quick question

2001-11-23 Thread Lance Keay
this will give you a random number of 0 or 1. Just substitue the 1 for the number range you want. Note: I have found that the lowest and highest numbers do not appear to have the same randomness weighting as the middle range, probably due to the sprintf rounding, so add two to the range you want

RE: deleting a file

2001-11-23 Thread Scott Ryan
system ("rm $file"); -Original Message- From: Jan-Willem Haaring [mailto:[EMAIL PROTECTED]] Sent: 23 November 2001 15:04 To: Wagner Garcia Campagner Cc: [EMAIL PROTECTED] Subject: Re: deleting a file unlink("/directory/filename"); perldoc -f unlink - JW On Fri, 23 Nov 2001, Wagner G

Re: deleting a file

2001-11-23 Thread Jan-Willem Haaring
unlink("/directory/filename"); perldoc -f unlink - JW On Fri, 23 Nov 2001, Wagner Garcia Campagner wrote: > Hi, > > Sorry for the stupid question, but i didn't find in the FAQ. > > What is the sintax to delete a file??? > > Thanks in advance, > Wagner Garcia Campagner > > -- To unsubscribe,

Re: deleting a file

2001-11-23 Thread Brett W. McCoy
On Fri, 23 Nov 2001, Wagner Garcia Campagner wrote: > Sorry for the stupid question, but i didn't find in the FAQ. > > What is the sintax to delete a file??? unlink deletes a file. perldoc -f unlink -- Brett http://www.chapelperilous.net/ -

deleting a file

2001-11-23 Thread Wagner Garcia Campagner
Hi, Sorry for the stupid question, but i didn't find in the FAQ. What is the sintax to delete a file??? Thanks in advance, Wagner Garcia Campagner -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Quick question

2001-11-23 Thread Edwin Groothuis
On Thu, Nov 22, 2001 at 10:04:24PM -0500, Andre` Niel Cameron wrote: > Anyone know how to get a whole random number in perl? > > rand(18) always gives decimals I need just like 12 or 7 anyone know? Multiply it by the maximum number you want, for example if you want something between [1,20] you d