Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[S03] fix filetest example
  • Loading branch information
felher committed Jun 22, 2011
1 parent f1ac9f5 commit d885007
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S03-operators.pod
Expand Up @@ -2685,11 +2685,11 @@ is the same as

Likewise

if $filename.IO ~~ :!e { say "exists" }
if $filename.IO ~~ :!e { say "doesn't exist" }

is the same as

if not $filename.IO.e { say "exists" }
if not $filename.IO.e { say "doesn't exist" }

The 1st form actually translates to the latter form, so the object's
class decides how to dispatch methods. It just happens that the
Expand Down

0 comments on commit d885007

Please sign in to comment.