Re: Problem with my code
- From: pangj@xxxxxxxxxxxxx (Jeff Pang)
- Date: Mon, 6 Aug 2007 13:32:57 +0800 (GMT+08:00)
-----Original Message-----
From: Jeff Pang <pangj@xxxxxxxxxxxxx>
while(<DIR>) {
next if /^\.+$/; #or
next if $_ eq '.' or $_ eq '..';
}
Sorry for the mistake,it's,
while(my $obj = readdir DIR) {
next if $obj =~ /^\.+$/; #or
next if $obj eq '.' or $obj eq '..';
}
--
Jeff Pang <pangj@xxxxxxxxxxxxx>
http://home.arcor.de/jeffpang/
.
- Follow-Ups:
- Re: Problem with my code
- From: Mumia W.
- Re: Problem with my code
- Prev by Date: Re: Problem with my code
- Next by Date: Re: Problem with my code
- Previous by thread: Re: Problem with my code
- Next by thread: Re: Problem with my code
- Index(es):