Permalink
Browse files

code style improvement

  • Loading branch information...
1 parent f11637c commit 83333f0ce4641a30f4fc4b97eb5958654cb6df74 @darkstalker committed Apr 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 rnd_ebooks.pl
View
@@ -29,7 +29,7 @@
print "selected file: $pdf_selected\n";
# get page count
-my $page_count = (split ' ', `pdfinfo "$pdf_selected" | grep Pages`)[1];
+my (undef, $page_count) = split ' ', `pdfinfo "$pdf_selected" | grep Pages`;
# select a random page
my $sel_page = int(rand($page_count)) + 1;

0 comments on commit 83333f0

Please sign in to comment.