2009/1/14 Shlomi Fish <shlo...@iglu.org.il>:
>> What's wrong with using _ instead ?
>
> Well, I'm storing the result of stat somewhere, and then checking for whether
> it's a link or not only later. I guess I can also store the return code of -l
> and other things I'm interested in.

That's what _ is for : it stores the result of the last stat or lstat.
(see perldoc -f stat)

By the way, may I point out that to see if something is a symbolic
link, you need lstat. stat does not stat symbolic links, but it stats
their targets, so your test will always be false.

Reply via email to