Re: tabular printing

2009-10-05 Thread Алексеев Александр
$ 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

Re: Use Strict, Perl 5.10 and Global Symbol requires explicit package name

2009-09-29 Thread Алексеев Александр
@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

Re: get list of files sorted by date

2009-09-29 Thread Алексеев Александр
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:

Re: Argument List::Util isn't numeric

2009-09-28 Thread Алексеев Александр
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