Skip to content

Instantly share code, notes, and snippets.

@sharifulin
Created July 3, 2013 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sharifulin/5921524 to your computer and use it in GitHub Desktop.
Save sharifulin/5921524 to your computer and use it in GitHub Desktop.
Норм код, да? :-)
# ids
my @ids = $self->req->param('id');
if (!@ids and my $ids = $self->req->param('ids')) {
@ids = $ids =~ /(\d+)/g;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment