Re: Problem with my code
- From: rvtol+news@xxxxxxxxxxxx (Dr.Ruud)
- Date: Wed, 8 Aug 2007 22:44:46 +0200
"Mumia W." schreef:
Jeff Pang wrote:
[...]
while(my $obj = readdir DIR) {
next if $obj =~ /^\.+$/; #or [...]
More, precisely, you might use this:
next if $obj =~ /\A\.\.?\z/;
Please see `perldoc -f -f`.
--
Affijn, Ruud
"Gewoon is een tijger."
.
- References:
- Re: Problem with my code
- From: Jeff Pang
- Re: Problem with my code
- From: Mumia W.
- Re: Problem with my code
- Prev by Date: slices
- Next by Date: Re: Replacing the n'th line with the new line
- Previous by thread: Re: Problem with my code
- Next by thread: VMWARE PERL API
- Index(es):
Relevant Pages
|
|