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

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758207227, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Perl/functions/ellipsis-statement(68): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78