Search notes:

Perl: ellipsis statement (...)

The ellipsis statement parses without error, but throws an Unimplemented at … error if actually tried to be executed.
Thus, it can be used to indicate code yet to be implemented.
The ellipsis statement is not to be misstaken for the flip-flop operator (that looks the same: ...)
#!/usr/bin/perl
use warnings;
use strict;


for my $i (1 .. 10) {

  print "$i\n";

  do_what_i_mean() if $i == 5;

}


sub do_what_i_mean {

  # The implementation of this sub is trivial
  # and left as an exercise for the reader

 ... # yada-yada

}
Github repository about-perl, path: /functions/ellipsis-statement.pl

See also

Perl functions

Index