updating dos access time

2003-06-15 Thread Andrew Watson
Hi, In Win32 how do I make the dos access time , that obtained via 'dir /TW', reflective of when I add a file to a directory. For instance running open(FILE,">c:\\test\\file.txt"); print FILE "hello"; close FILE; does not seem to update the last accessed time of c:\test Thanks Andrew -- To

RE: beginner "if statement" question

2003-06-15 Thread Rai,Dharmender
> or u can use : > > if($password =~ /^howard$/) > { > ## logic goes here > } > > -- > From: James Edward Gray II[SMTP:[EMAIL PROTECTED] > Sent: Saturday, June 14, 2003 8:58 PM > To: deborah > Cc: [EMAIL PROTECTED] > Subject: Re: beginner "if statement" questi

Re: How to store bit array of arbitrary length

2003-06-15 Thread John W. Krahn
Richard Heintze wrote: > > Presently I'm using an integer to implemement an array > of booleans. > > I suspect this won't work beyond 32 array elements. Is > there a better way to accommodate longer bit arrays? > > Could I use a string, for example, to store an array > of bits? Can I just use th

How to store bit array of arbitrary length

2003-06-15 Thread Richard Heintze
Presently I'm using an integer to implemement an array of booleans. I suspect this won't work beyond 32 array elements. Is there a better way to accommodate longer bit arrays? Could I use a string, for example, to store an array of bits? Can I just use the bit manipulation operators (^= &= |=) on

Re: while (<>)

2003-06-15 Thread John W. Krahn
Bryan Harris wrote: > > Is there a way to discover the filename of the current file being read when > using the angle brackets (e.g. while (<>) {} )? Well, as you may know, the <> operator reads from the file names stored in the @ARGV array. The current file name is stored in the $ARGV variable

Re: I need to make this not end

2003-06-15 Thread Josimar Nunes de Oliveira
A little fix: the line below must come before the "while()" $im_thinking_of=int(rand 10); > while(){ > print "Pick a number:"; > $guess=; > chomp $guess; > if ($guess>$im_thinking_of) { > print "You guessed too high!\n"; > } elsif ($guess

Re: beginner "if statement" question

2003-06-15 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Deborah) writes: >In the same line as my last question once I tried to understand how >Perl was interpreting string comparisons, I started experimenting with >different strings. > >What is Perl doing here? Why doesn't it use the "if" stateme

Re: Help required.....about string/text manipulation

2003-06-15 Thread Rob Dixon
Anybody? Rob Chinku Simon wrote: > > > Mohit_jain01 wrote: > > > > > > > From: Rob Dixon > > > > > > > > Mohit_jain01 wrote: > > > > > > > > > > I am facing a problem with text file manipulation with Perl. > > > > > > > > > > I have a file with over 2 lac lines of data. > > > > > I need to find

Re: while (<>)

2003-06-15 Thread Sudarshan Raghavan
Bryan Harris wrote: Is there a way to discover the filename of the current file being read when using the angle brackets (e.g. while (<>) {} )? perldoc perlop #Search for 'null filehandle' The filename will be stored in $ARGV TIA. - Bryan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For a