473,473 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

PERL conversion from Solaris to Mac OS

2 New Member
I am interested in porting Perl programs I wrote years ago from Solaris based servers to run on a Apple Mac platform (latest OS). I have yet to purchase a the needed Mac hardware. I wanted to first get feed back on how easy it is to port the Perl code between these platforms. I have been out of the programming business for many years, so I do not want to have to do major rewrites. If it is basically making hardware specific changes I will go ahead and get a Mac server, else I will get an updated Sun workstation.

Has anyone dealt with this migration path that can let me know of their experiences and what I can expect?

Thanks

Terry

BTW

Is there a place to obtain PERL source, so I can get an idea of how network related calls are handled? I will contribute code to the library future.

Can PERL code be compiled like it can on the Solaris platform?
Aug 23 '07 #1
3 1246
numberwhun
3,509 Recognized Expert Moderator Specialist
Ok, one question at a time. Since MacOS is Unix based (starting with OSX), I would think that the porting would be a lot easier than you would think (hopefully pretty painless). I am not going to say any definites as there may be someone here who has used Perl on the mac that may know of any caveats to watch out for.

Perl is open source so I am sure you can find the source. You can also check out the wonderful modules over atCPAN.

Regards,

Jeff
Aug 23 '07 #2
miller
1,089 Recognized Expert Top Contributor
The biggest thing that I know if is making sure that all file operations use File::Spec, instead of using hardcoded file operations.

After that, there are definitely minor differences, but most can be handled easily enough.

- M
Aug 23 '07 #3
SecureTalk
2 New Member
Thank you for the replies.

I think I may start off with a MacBook Pro (as I need a new laptop anyway). I am enticed by the PC tablets, and if there was a Macbook Tablet I would have jumped at that option. I can then test the code conversions on the MacBook Pro before deciding on the big purchase of a Mac Server or a Sun Microsystems server.

I have PERL programs with thousands of lines code each. So I need to be sure I make the right OS choice.

Thanks again for the input, I feel more confident now that I should try the Mac.

Terry
Aug 24 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Matt Johnson | last post by:
Hello, Recently we made some fairly significant upgrades...going from Solaris 5.6 to Solaris 5.8 (Solaris 8). Along with this, we decided to upgrade from perl 5.005_03 directly to perl 5.6.0. ...
3
by: Chris Pruett | last post by:
An odd (to me) behavior I was hoping someone could explain. Take the simple command: perl -e 'print 0xCEC5 + 0xFFFFE253 & 0xFFFF' I tried this on a number of computers. Most give 0xFFFF, ...
1
by: Christian Eriksson | last post by:
Hi! I have a problem using the environment variable LD_LIBRARY_PATH in my perl script. Everything works fine when I set it at the command prompt and then runs my perl script like this: ...
0
by: Jean-Marie Gouarné | last post by:
The new OpenOffice::OODoc distribution, V 1.203, is available from CPAN today. It's an Expat-based Perl extension allowing direct read/write access to OpenOffice.org (XML) documents. It provides...
10
by: Hendry Taylor | last post by:
I wrote a perl script and tested it on windows and it works fine. I then moved it onto a solaris machine and now it says that there is a syntax error with the following line of code: $user1 =...
0
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile....
13
by: Otto J. Makela | last post by:
I'm trying to install to php the Perl-1.0.0.tgz package (from http://pecl.php.net/package/perl, enabling one to call perl libraries) to a pre-existing Solaris system. Unfortunately, the attempt...
2
by: susinthaa | last post by:
Hi, How to use a solaris mount command in perl? I tried that telnet to the solaris machine. For that solaris machine, how can I give the username and password? use Net::Telnet; use...
3
by: andrewkl | last post by:
hi, I have the following Perl code that inserts a string to an Oracle DB via a stored procedure: #!/usr/local/bin/perl ## Perl v5.8.6 built for sun4-solaris use strict; BEGIN...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.