Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: need help on declaring variables

by Thilosophy (Curate)
on Mar 03, 2008 at 06:48 UTC ( #671583=note: print w/ replies, xml ) Need Help??


in reply to need help on declaring variables

but it gave me some error

Hmm. Did it give you an error message to go along with the error?

The error seems to stem from here:

my $dt = $Strp->parse_datetime($1); my $timestamp = $dt ->epoch(); my $refs = $2;
You suspect $1 and $2. Do they contain the value you think they should (add some debug output)? When using regular expressions, you should check if there actually was a match.


Comment on Re: need help on declaring variables
Download Code
Replies are listed 'Best First'.
Re^2: need help on declaring variables
by tuakilan (Acolyte) on Mar 03, 2008 at 07:31 UTC
    hi thilosophy,

    the error which i got when run the script is

    Can't call method "epoch" on an undefined value at comblog.pl line 52, + <$fh> line 5.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://671583]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2015-07-28 07:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (252 votes), past polls