> Hi,I am masayoshi.
> I read the following article.
>
> http://perltraining.com.au/tips/2005-11-24.html
>
>
> A lot of website use the following script to explain file test
> operators,
> But I reckon I should not write it for race conditions.
> Is this right?
> Thanks in advance.
>
>
> #!/usr/bin/perl
>
> use strict;
> use warnings;
>
> my $file = "sample.txt";
>
> if ( -e $file ) {
>     print "File exists.\n";
> } else {
>     print "File does not exist.\n";
> }
>
> __END__




There is no race condition.

And that code demo is correct



 --
Owen


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to