Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added selective linking and skipping options.
Also added another sample to demonstrate this.
- Loading branch information
1 parent
9bbee82
commit 8f3cfd6
Showing
3 changed files
with
37 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
use v6; | ||
use Link::C; | ||
Link::C::link <libreadline readline/readline.h>, :link(<rl_initialize readline>), :import(*); | ||
|
||
rl_initialize; | ||
while my $line = readline "Flip: " { | ||
say $line.flip; | ||
} |