On Aug 30, 2006, at 3:42 AM, Dr.Ruud wrote:
Aaargh, I was suddenly mixing up split /()/ and /()/g. I really
shouldn't post anymore without testing.
Thank you all for the clarifications regarding split(). I should pay
more attention when I read the documentation (or get more sleep).
that I am not seeing?
Thanks in advance for your answers,
-Hien
My script:
==
#!/usr/bin/perl -w
use strict;
my $foo = 'abcdefghijklmnopq';
# Method 1
print( "\nMethod 1\n" );
my $foo_length = length( $foo );
for( my $i = 0; $i < $foo_length; $i += 5
dear all,
i am trying to check if there are any files named file* (e.g.
file_001.txt file1.doc) in my directory.
if( -e "file*" ) { print("true\n"); } # this doesn't work
else { print("false\n"); }
if( -e "m/^file/" ) { print("true\n"); } # this doesn't work either
else { print("false\n"); }