Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6204613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:07:38+00:00 2026-05-24T05:07:38+00:00

I need a module to accept the following timestamp from command line in Perl.

  • 0

I need a module to accept the following timestamp from command line in Perl.

        2010/11/29 09:39:57

I have used the Getopt::Long module to accept the command line options. But it doesn’t accept the full
timestamp from command line. It is accepting only date value(2010/11/29) not accepting the time value(09:39:57).

If anyone know the module to solve this issue, kindly let me know.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T05:07:40+00:00Added an answer on May 24, 2026 at 5:07 am

    Just put quotes around the timestamp. It should work fine with Getopt::Long

    ./script.pl -t '2010/11/29 09:39:57'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In python, if you need a module from a different package you have to
I need to write a perl program that accept command lines arguments which can
I need to define the constant in the module that use the method from
I need a regular expression or module for validating the website URL using Perl.
I have a string like the following: <118>date=2010-05-09,time=16:41:27,device_id=FE-2KA3F09000049,log_id=0400147717,log_part=00,type=statistics,subtype=n/a,pri=information,session_id=o49CedRc021772,from=prvs=4745cd07e1=example@example.org,mailer=mta,client_name=example.org,[194.177.17.24],resolved=OK,to=example@example.org,direction=in,message_length=6832079,virus=,disposition=Accept,classifier=Not,Spam,subject==?windows-1255?B?Rlc6IEZ3OiDg5fDp5fog+fno5fog7Pf46eHp7S3u4+Tp7SE=?= I tried using CSV module and
Basically I have written two modules for my Python Program. I need one module
My current thinking: I need a certain module that will let me access the
I need to write a module that gives me a page will all possible
I need to write a module that sends order data to an epayment service,
I need some like this: module One def test; puts 'Test One'; end end

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.