perl GD package

2005-05-04 Thread Mark Cohen
Hello, When looking for the GD package under Windows using PPM i can't find the package. I try using the install GD but it tells me that that the package doesn't exist. The ppm version is 3.1 The repositories are: 1)Activestate PP2 repository 2)Activestate package repository What could be the rea

Re: reading an integer value from file?

2005-02-06 Thread Mark Cohen
Pablo, Try one of the following subsubroutines. In the following example the binary subroutine is called with the first 4 bytes. The key is to understand how to use the unpack function. Regards Mark $value = binary(substr($_record,0,4)); sub ib { # A signed integer value. my

GD module not found using PPM

2005-01-20 Thread Mark Cohen
Hello, I couldn't find the GD module (graphs) when using PPM. After some search I found the following html which contains many module not found in PPM. Hope this helps somebody. www.bribs.org/perl/ppmdir.html Regards Mark

Re: More elegant solution for a date conversion

2005-01-20 Thread Mark Cohen
$str='0501201500'; $date=join('/',substr($str,2,2),substr($str,4,2),20 . substr($str,0,2)); $time=join(':',substr($str,6,2),substr($str,8,2)); $datetime=join(',',$date,$time); Regards Mark - Original Message - From: "Jason Balicki" <[EMAIL PROTECTED]> To: "'Perl Beginners List'" Sent:

use warnings

2005-01-13 Thread Mark Cohen
Hello, While the use strict is quite clear to me "Perl pragma to restrict unsafe contructs" , the use warnings "Perl pragma to control optional warnings" is not. What programming risks could I get without the use warnings ? Thanks Mark -- To unsubscribe, e-mail: [EMAIL

floating point convertion

2004-08-04 Thread Mark Cohen
Hello , I have a transferred a file from an IBM mainframe to a windows platform that I need to analyse. The file contains an 8 byte floating point hexadecimal representaion 44FE8800. This should be converted to the number 65160. I created the following subroutine which works ok but it d