User Profile

Collapse

Profile Sidebar

Collapse
sadanand
sadanand
Last Activity: Jul 13 '07, 02:03 PM
Joined: May 19 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • sadanand
    replied to File Time comparison
    in Perl
    Thnaks Miller,

    I am able to get the time of two files.
    But I am not able to compare the times.
    See more | Go to post

    Leave a comment:


  • sadanand
    started a topic File Time comparison
    in Perl

    File Time comparison

    Hi,
    i have two files which are created at x and y time (date,Day,time) .
    I want to compare the time of each file and pick the latest file.

    How can I do that?

    thanks in advance.

    Sada
    See more | Go to post

  • sadanand
    replied to Sorting files
    in Perl
    Hi Kevin,

    what is "date of file"?

    ---->The date and the time when the file was created.

    Regards,

    Sadanand...
    See more | Go to post

    Leave a comment:


  • sadanand
    started a topic Sorting files
    in Perl

    Sorting files

    Can anyone tell me how to sort the list of files on the basis of creation time and date of file?
    See more | Go to post

  • sadanand
    started a topic Pattern Matching
    in Perl

    Pattern Matching

    I have a code which displays the list of files avaialble in a particular folder.

    Example:-

    I have 123,123_SIM,456 _SIM,678_SIM,89 0 files in the following folder.
    C:\perl_practic e\Folder

    Code:-

    [CODE=perl]
    use Data::Dumper;
    #use strict;
    #use warnings;
    use File::Find;
    use File::Stat;
    use Time::Local;

    my $test_data1='C: \perl_practice\ Folder';...
    See more | Go to post
    Last edited by miller; May 22 '07, 04:40 PM. Reason: Code Tag and ReFormatting

  • sadanand
    started a topic File Program
    in Perl

    File Program

    Hi,

    I am a beginer to perl progmig.
    When I run the following program..

    [CODE=perl]
    use File::Find;
    use File::Stat;
    use Time::Local;

    my $test_data1='X path'; # Some path

    my @cbr = $test_data1;
    foreach $cbr(@cbr) {
    opendir (DIR,$cbr);
    @files = readdir(DIR);
    closedir(DIR);

    foreach $file (sort @files) {
    print("$file...
    See more | Go to post
    Last edited by miller; May 19 '07, 04:43 PM. Reason: Code Tag and ReFormatting
No activity results to display
Show More
Working...