Skip to content

Instantly share code, notes, and snippets.

@tomcha
Created December 4, 2015 01:22
Show Gist options
  • Select an option

  • Save tomcha/267763d83be42ad349b7 to your computer and use it in GitHub Desktop.

Select an option

Save tomcha/267763d83be42ad349b7 to your computer and use it in GitHub Desktop.
45
#!/usr/bin/env perl
use strict;
use warnings;
my @num;
@num = (1..1000);
for my $i (@num){
print "$i\n";
if ($i == 10){
last;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment