User Profile

Collapse

Profile Sidebar

Collapse
Ramkumar85
Ramkumar85
Last Activity: Aug 21 '12, 11:03 AM
Joined: Jan 24 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I need to stop the get method process its take more than 60 sec.

    Hi All,

    I used LWP::USerAgent module to get the data from the URL. If the URL get slow or some other reason to take the data more than 60 seconds need to exit from the method.

    Is there any way to quit the method while get method processing more than 60 seconds.

    Regards,
    Ram.

    I used the below code to get the data's from URL.

    Code:
    use warnings;
    	use strict;
    	use LWP::UserAgent;
    ...
    See more | Go to post
    Last edited by numberwhun; Jun 25 '12, 10:07 AM. Reason: You have 8 posts under your belt. Please remember that you NEED to put CODE tags around code in the forums!

  • Hi Jeff,

    We can get the correct data from the xls file. I have checked the same xlsx file saves as to xls file and check the same.

    We unable get the exact data(these foreign character) from the xlsx file.

    Regards,
    Ram
    See more | Go to post

    Leave a comment:


  • Hi Jeff,

    I below mentioned code used to get the data from xlsx file.

    Code:
    use strict;
    use warnings;
    use Spreadsheet::XLSX;
    use Spreadsheet::XLSX::Utility2007;
    use Spreadsheet::XLSX::Fmt2007;
    foreach my $sheet (@{$oExcel -> {Worksheet}}) 
    {
    	# print "Entered \n"; <STDIN>;
    	$sheetName = $sheet->{Name};
    	next unless (exists ($sheet->{MaxRow}) and (exists
    ...
    See more | Go to post
    Last edited by numberwhun; Jun 22 '12, 01:05 PM. Reason: Please use CODE tags around code that you post in the forums!

    Leave a comment:


  • Received some other foreign character while read the data from xlsx file.

    Hi All,

    I received the some other foreign character while read the data from xlsx file.

    Source xlsx file data : ΠΣ15 ΑΡΧΗΓΟΣ ΠΣ ΚΟΚΚΙΝΑΚΗΣ ΑΛΚ
    Output for the data : Î*Σ15 ΑΡΧΗΓΟ Σ Î*Σ ΚΟΚΚΙΝΑΠšÎ—Σ ΑΛΚ

    I used "Spreadsheet::X LSX" module to get the data from the file. Please check and provide some solution to resolve the problem.
    See more | Go to post

  • Received some other date format while read the data from xlsx file.

    Hi All,

    I have received some other date value from the .xlsx file. Used the Spreadsheet::XL SX module to read the data from the file.

    Source file value : 19/07/1988 14:00:00
    The actual data : 32343.58 ( The values return from the cell while read the data from that cell).

    I also used the Spreadsheet::XL SX::Utility2007 ;Spreadsheet::X LSX::Fmt2007; module to get the correct date but not yet resolve....
    See more | Go to post

  • Hi Madhu,

    U get the file modified time from the "stat" method.Check the below for the return values for "stat" method.

    ($dev,$ino,$mod e,$nlink,$uid,$ gid,$rdev,$size , $atime,$mtime,$ ctime,$blksize, $blocks) = stat($filename) ;

    U can store the file based on the modified time.

    Regards,
    Ram
    See more | Go to post

    Leave a comment:


  • Ramkumar85
    started a topic Need to scrape the data from webpage
    in Perl

    Need to scrape the data from webpage

    Hi Friedns,

    I need to scrape the data from "https://portal.emsa.eur opa.eu/web/thetis/refusal-of-access".

    I checked this url with help of "LWP::UserAgent " and "WWW:Mechan ize" module but i didn't get the result.

    Kindly provide me any solution for this.

    Regards,
    Ram.
    See more | Go to post

  • Ramkumar85
    started a topic Need to scrape the data from aspx webpage
    in Perl

    Need to scrape the data from aspx webpage

    Hi All,

    I need to scrape the data from the URL "https://hms.portxcs.nl/oper/Public/PublicMovements .aspx".

    Here we give the dropdown box for "Time" should be "Next 7 Days" and "Port" should be "Vlissingen " Finally click the "Search" button.

    Web page shows some records about the given credentials. I want to scrape that datas.

    I used...
    See more | Go to post
No activity results to display
Show More
Working...