in reply to sugession for the filecreating

Which part are you having a problem with? (Listing a dir? Finding the current highest numbered file? Generating the next number? Creating a file?) What have you done so far?

Replies are listed 'Best First'.
Re^2: sugession for the filecreating
by sanku (Beadle) on Mar 24, 2008 at 06:21 UTC
    #!/usr/bin/perl use DBI; my $now = localtime(); push (@now,split(/\s/,$now)); $mm=$now[1]; $dd=$now[2]; $hh=$now[3]; $yy=$now[4]; $now1="$yy$mm$dd$hh"; #after this i need alphabetics like "$yy$mm$dd$hhA" "$yy$mm$dd$hhB" ... "$yy$mm$dd$hhZ" "$yy$mm$dd$hhAA" this is mysql code $dbh=DBI->connect('DBI:mysql:suntelivr','xxxx','xxxx') or $DBI::errstr +; $sth=$dbh->prepare("insert into sequenceno (filename) values ('$now1") +; $sth->execute; $sth=$dbh->prepare("select * from sequenceno"); $sth->execute; while(@ss=$sth->fetchrow_array()){ $now1=$ss[$i+1]."_".$ss[$i]; }

    Mar 24, 2008 at 18:34 UTC McDarren Added code tags, removed sensitive information from code.