Rash Again

Exercise 5: Blank Lines

by Arne Sommer

Rash - Exercise 5: Blank Lines

[71.1] Published 3. May 2020.

You have read the Exercise text first?

We can simply ignore blank lines:

File: rash-blanklines (changes only)
while (my $line = linenoise '> ').defined
{
  next unless $line;
  
  linenoiseHistoryAdd($line);

The full program is available as «rash-blanklines».