Skip to content

Commit eb3bdcc

Browse files
authored
Update Fix-User-Guide.md
1 parent ddca030 commit eb3bdcc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/fix/Fix-User-Guide.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This document provides an introduction to the Metafacture Fix language (short: M
1313
Metafacture Fix is a transformation module that can be used in a [Flux Workflow](../flux/Flux-User-Guide.html), for this you have to use this in your pipeline:
1414

1515
Flux-Example:
16-
```PERL
16+
```perl
1717
infile
1818
| open-file
1919
| as-lines
@@ -41,7 +41,7 @@ The incoming record then can be manipulated, fields can be changed, removed or a
4141
The four main concepts of FIX (introduced by catmandu) are [functions](https://librecat.org/Catmandu/#functions), [selector](https://librecat.org/Catmandu/#selectors), [conditionals](https://librecat.org/Catmandu/#conditionals) and [binds](https://librecat.org/Catmandu/#binds). The following code snippet shows examples of eachs of these concepts:
4242

4343

44-
```PERL
44+
```perl
4545

4646
# Simple fix function
4747

@@ -83,7 +83,7 @@ end
8383
**Binds** are wrappers for one or more fixes. They give extra control functionality for fixes such as loops.
8484
All binds have the same syntax:
8585

86-
```PERL
86+
```perl
8787
do Bind(params,…)
8888
fix(..)
8989
fix(..)
@@ -100,7 +100,7 @@ Internally FIX knows arrays, objects/hashes and simple elements. How a format is
100100
Since functions manipulate, add or remove elements in a record, it is essential to understand the way you can address source or target elements.
101101

102102
e.g.:
103-
```PERL
103+
```perl
104104
copy_field("<sourceField>", "<targetField>")
105105
```
106106

@@ -181,7 +181,7 @@ mechanism later.
181181
Macros are called with the `call_macro` function. Attributes
182182
of the function are used as parameters:
183183

184-
```PERL
184+
```perl
185185
do put_macro("concat-up")
186186
set_array("$[target_field]")
187187
copy_field("$[source_field]","$[target_field].$append")

0 commit comments

Comments
 (0)