Permalink
Browse files

correct usage of split

  • Loading branch information...
1 parent bd68118 commit c174339db15aa93ca9e3a81f26930afdfa82401c @xsawyerx xsawyerx committed Oct 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Dancer/Script.pm
@@ -188,7 +188,7 @@ sub _set_lib_path {
$self->lib_file($self->appname);
$self->lib_path("");
}
- my @lib_path = split('::', $self->appname);
+ my @lib_path = split /::/, $self->appname;
my ($lib_file, $lib_path) = (pop @lib_path) . ".pm";
$lib_path = join('/', @lib_path);
$self->lib_file($lib_file);

0 comments on commit c174339

Please sign in to comment.