oikool has asked for the wisdom of the Perl Monks concerning the following question:
hi.. im new to perl. I need help on how to create a bill based on calender. If its a week old plan or before the plan expires i need to create a bill. i have done this much
#!/usr/local/bin/perl @months = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec); @weekDays = qw(Sun Mon Tue Wed Thu Fri Sat Sun); ($second, $minute, $hour, $dayOfMonth, $month, $yearOffset, $dayOfWeek +, $dayOfYear, $daylightSavings) = localtime(); $year = 1900 + $yearOffset; $theTime = "$hour:$minute:$second, $weekDays[$dayOfWeek] $months[$mont +h] $dayOfMonth, $year"; print $theTime; use strict; use warnings; $timefile="/home/$theTime-time.txt "; open (MYFILE, '>',$timefile); my $count=0; printf "Time value:",$theTime; print MYFILE $theTime; close (MYFILE);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: help in billing process
by 2teez (Vicar) on Jan 24, 2014 at 08:02 UTC | |
Re: help in billing process
by Anonymous Monk on Jan 24, 2014 at 07:53 UTC | |
Re: help in billing process
by oikool (Novice) on Jan 24, 2014 at 10:47 UTC | |
by marto (Cardinal) on Jan 24, 2014 at 11:02 UTC | |
Re: help in billing process
by oikool (Novice) on Jan 24, 2014 at 09:13 UTC | |
by Corion (Patriarch) on Jan 24, 2014 at 09:25 UTC | |
by oikool (Novice) on Jan 24, 2014 at 09:33 UTC | |
by Corion (Patriarch) on Jan 24, 2014 at 09:37 UTC | |
Re: help in billing process
by oikool (Novice) on Jan 24, 2014 at 11:35 UTC | |
by marto (Cardinal) on Jan 24, 2014 at 11:45 UTC | |
Re: help in billing process
by pemungkah (Priest) on Jan 24, 2014 at 17:01 UTC | |
by Anonymous Monk on Jan 25, 2014 at 01:15 UTC |