I am difficulty in using the split function to extract
the current date from the @date_time variable.



#! /usr/bin/perl -w

#Class 4 assignment

# define hash

use strict;

my %days;

%days = (
        'mon' => 'Monday',
        'tue' => 'Tuesday',
        'wed' => 'Wednesday',
        'thu' => 'Thursday',
        'fri' => 'Friday',
        'sat' => 'Saturday',
        'sun' => 'Sunday',
        );
# Define $date_time varible


my $date_time = localtime;
print "$date_time";

split $date_time,/ /;

__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to