Fix Assignment to $[ is no longer supported errors #164
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Assignment to $[ is no longer supported in Perl 5.30. This at least allows the example to compile and work.
Test plan
Verify wbd.bin can be compiled to the same binary as the one in repo.
ldbsrc % rm ldb/wbd.bin
ldbsrc % git status
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add/rm ..." to update what will be committed)
(use "git restore ..." to discard changes in working directory)
deleted: ldb/wbd.bin
no changes added to commit (use "git add" and/or "git commit -a")
ldbsrc % touch wbd/wbd.lex.utf8
ldbsrc % make -f Makefile.gnu lang=wbd all
fa_build_conf
--in=wbd/ldb.conf.small
--out=wbd/tmp/ldb.mmap.small.txt
fa_fsm2fsm_pack --type=mmap
--in=wbd/tmp/ldb.mmap.small.txt
--out=wbd/tmp/ldb.conf.small.dump
--auto-test
fa_build_lex --dict-root=. --full-unicode --in=wbd/wbd.lex.utf8
--tagset=wbd/wbd.tagset.txt --out-fsa=wbd/tmp/wbd.rules.fsa.txt
--out-fsa-iwmap=wbd/tmp/wbd.rules.fsa.iwmap.txt
--out-map=wbd/tmp/wbd.rules.map.txt
fa_fsm2fsm_pack --alg=triv --type=moore-dfa --remap-iws --use-iwia --in=wbd/tmp/wbd.rules.fsa.txt --iw-map=wbd/tmp/wbd.rules.fsa.iwmap.txt --out=wbd/tmp/wbd.fsa.small.dump
fa_fsm2fsm_pack --alg=triv --type=mmap --in=wbd/tmp/wbd.rules.map.txt --out=wbd/tmp/wbd.mmap.small.dump --auto-test
fa_merge_dumps --out=ldb/wbd.bin wbd/tmp/ldb.conf.small.dump wbd/tmp/wbd.fsa.small.dump wbd/tmp/wbd.mmap.small.dump
ldbsrc % printf "Hi There! This is a simple test." | fa_lex --ldb=ldb/wbd.bin --tagset=wbd/wbd.tagset.txt
Hi/WORD There/WORD !/WORD This/WORD is/WORD a/WORD simple/WORD test/WORD ./WORD
ldbsrc % git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean