in reply to Illegal seek from Find::File
Were you expecting find to return something?
As for the "Illegal seek"--running the code through the debugger, it seems that $! gets set to "Illegal seek" after the call to Cwd::cwd(). And in Cwd::cwd (aliased to Cwd::_backtick_pwd), it gets set after running this line:
You can actually take out the chop, and still get the error:chop($cwd = `pwd`);
givesprint "Before: ", $!, "\n"; my $cwd = `pwd`; print "After: ", $!, "\n";
And in fact, I get this w/ any backtick call:Before: After: Illegal seek
gives the same output. So it doesn't look like this is anything to worry about.print "Before: ", $!, "\n"; my $cwd = `date`; print "After: ", $!, "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Illegal seek from Find::File
by infoninja (Friar) on Jun 02, 2000 at 00:58 UTC | |
by merlyn (Sage) on Jun 06, 2000 at 07:31 UTC |