Acme-Glue

 view release on metacpan or  search on metacpan

README.md  view on Meta::CPAN

    * blead
    % find . -name "*.[ch]" | xargs wc -l | sort -nr | head -n5
      788279 total
      436086 ./charclass_invlists.h
       17540 ./sv.c
       16254 ./regcomp.c
       15712 ./op.c

## LEEJO (fizz\_buzz.pl generated from an "AI"; it's wrong in so many ways, it doesn't even compile)

        # Define a function that takes two arguments (starting number and ending number)
        sub fizz_buzz {

                # Initialize variables for counting and ending values
                my $count   = 0;
                my @results = ();

                # Loop through numbers between starting and ending values
                for my $i ( $starting .. $ending ) {

                        # Check if current number is divisible by any of these factors: 15, 3 or itself
                        foreach my $factor ( @factors ) {
                                next unless $_  * $i == $i;
                                push( @{ $results[$factor] },"$i" );
                        }
                        else {
                                push( @{ $results[0] },"$i" );
                        }

lib/Acme/Glue.pm  view on Meta::CPAN

    * blead
    % find . -name "*.[ch]" | xargs wc -l | sort -nr | head -n5
      788279 total
      436086 ./charclass_invlists.h
       17540 ./sv.c
       16254 ./regcomp.c
       15712 ./op.c

=head2 LEEJO (fizz_buzz.pl generated from an "AI"; it's wrong in so many ways, it doesn't even compile)

	# Define a function that takes two arguments (starting number and ending number)
	sub fizz_buzz {

		# Initialize variables for counting and ending values
		my $count   = 0;
		my @results = ();

		# Loop through numbers between starting and ending values
		for my $i ( $starting .. $ending ) {

			# Check if current number is divisible by any of these factors: 15, 3 or itself
			foreach my $factor ( @factors ) {
				next unless $_  * $i == $i;
				push( @{ $results[$factor] },"$i" );
			}
			else {
				push( @{ $results[0] },"$i" );
			}

snippets/LEEJO/fizz_buzz.pl  view on Meta::CPAN

# Define a function that takes two arguments (starting number and ending number)
sub fizz_buzz {

    # Initialize variables for counting and ending values
    my $count   = 0;
    my @results = ();

    # Loop through numbers between starting and ending values
    for my $i ( $starting .. $ending ) {

        # Check if current number is divisible by any of these factors: 15, 3 or itself
        foreach my $factor ( @factors ) {
            next unless $_  * $i == $i;
            push( @{ $results[$factor] },"$i" );
        }
        else {
            push( @{ $results[0] },"$i" );
        }



( run in 0.245 second using v1.01-cache-2.11-cpan-0d8aa00de5b )