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
> 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
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
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
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
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
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
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
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