in reply to Re: -s file test operator only works in same directory
in thread -s file test operator only works in same directory

Because subrefs are cool?
  • Comment on Re^2: -s file test operator only works in same directory

Replies are listed 'Best First'.
Re^3: -s file test operator only works in same directory
by NetWallah (Canon) on Dec 08, 2017 at 05:41 UTC
    That is not a subref.
    perl -E ' say ${\"FFF"}' FFF
    All you are doing is referencing then de-referencing the returned value of the sub.

    It is just a way to call a sub inside quotes - but I dislike the obfuscation it causes.

                    All power corrupts, but we need electricity.

      Ah, I see. Well, the real answer is that I left it like that because I was playing around, and I agree that it’s unnecessary. Also, I thought it was a subref. Anyway, thanks for your help!