slash

Last edit

Summary: updates from markhobley.yi.org

Changed:

< The '''slash''' symbol is used as an [[enclosure]] that marks a [[regular expression]] as a [[pattern]]:

to

> == Division Operator ==
> The slash symbol is used as the division operator to produce the [[result]]s of a [[quotient division]] calculation of two [[operand]]s:
> $answer = 18 / 3; # 6
> == Regular Expression Enclosure ==

> The slash symbol is used as an [[enclosure]] that marks a [[regular expression]] as a [[pattern]]:


Division Operator

The slash symbol is used as the division operator to produce the [[result?]]s of a [[quotient_division?]] calculation of two [[operand?]]s:

$answer = 18 / 3; # 6

Regular Expression Enclosure

The slash symbol is used as an [[enclosure?]] that marks a regular expression as a pattern:

 # foobar is a regular expression used as a pattern
 /foobar/ { print $0 }