$ perl
printf %15s %15s\n, hello, world;
^D
hello world
--
Alexandr A Alexeev
http://web20.su/
Andreas Moroder пишет:
Hello,
I want pro print to screen two strings. The problem ist that the
length of the strings are variable, so I get a unreadable output. Even
using \t
@dates and %dates are two different variables in Perl. An error occurs,
becouse %dates is not declared.
--
Alexandr A Alexeev
http://web20.su/
Soham Das пишет:
Take a look at the following snippet of code:
#!/usr/bin/perl
use warnings;
use strict;
use Tie::Handle::CSV;
#Read Market Data
my
print join \n, sort {(stat $a)[8] = (stat $b)[8]} glob ./*;
--
Alexandr A Alexeev
http://www.unixcommunity.net/
Andreas Moroder пишет:
Hello,
according to the man glob can only sort by name. Is there a way to get
a list of files sorted by date ?
Bye
Andreas
--
To unsubscribe, e-mail:
List::Util in your case is a module name, not an object.
Use :: istead of -.
my $sk = List::Util::sum(keys %h);
--
With best regards
Alexandr A Alexeev
http://web20.su/
Stanisław Findeisen пишет:
This short program:
#!/usr/bin/perl
use warnings;
use strict;
use List::Util qw(sum);
my %h