reading a few bytes into a file

2008-07-29 Thread Scott Haneda
Hello, I have this small C app that someone wrote for me ages ago, and am tired of it breaking every time I move it around to various systems, I will include it below. I am hoping I can do this in perl, as a one liner, were it will read a the first 4 bytes of a file, grab 4 bytes out of the

explanation of @INC

2009-01-22 Thread Scott Haneda
Hello, total newbie here, maybe 50 lines of perl in my life. I really appreciate any pointers. I have hit a research wall on this one. I am working on trying to create a portfile for MacPorts for ASSP. MacPorts is just a package manager for OS X. There are a few things that are probably

Re: explanation of @INC

2009-01-23 Thread Scott Haneda
On Jan 22, 2009, at 10:54 PM, Raymond Wan wrote: Scott Haneda wrote: ASSP installed. I edit the ASSP source files to change the first line from: #!/usr/bin/perl -- to #!/opt/local/bin/perl -- ... run as `perl testfile.pl` it will fail, with error that it can not find email valid run as

Re: explanation of @INC

2009-01-23 Thread Scott Haneda
On Jan 23, 2009, at 1:01 AM, Gunnar Hjalmarsson wrote: Scott Haneda wrote: ASSP required about 15 perl modules, I installed them, or wrote new portfiles for them to get them installed. I have all requirements for ASSP installed. I edit the ASSP source files to change the first line from

Re: explanation of @INC

2009-01-23 Thread Scott Haneda
. On Jan 22, 2009, at 10:01 PM, Scott Haneda wrote: ASSP required about 15 perl modules, I installed them, or wrote new portfiles for them to get them installed. I have all requirements for ASSP installed. I edit the ASSP source files to change the first line from: #!/usr/bin/perl -- to