Thread View: news.software.nntp
2 messages
2 total messages
Started by Robert Nicholson
Fri, 21 Oct 1994 07:51
Something to think about......
Author: Robert Nicholson
Date: Fri, 21 Oct 1994 07:51
Date: Fri, 21 Oct 1994 07:51
42 lines
1982 bytes
1982 bytes
Mail2News stopped working this morning...
Guess why..
#!/usr/local/bin/perl
($program = $0) =~ s%.*/%%;
( $version ) = $] =~ /(\d+\.\d+).*\nPatch level/;
die "$program: requires at least version 3 of perl\n"
if $version < 3;
root:/usr/tmp>perl4.036 -v 8:43
This is perl, version 4.0
$RCSfile: perl.c,v $$Revision: 4.0.1.8 $$Date: 1993/02/05 19:39:30 $
Patch level: 36
Copyright (c) 1989, 1990, 1991, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 4.0 source kit.
root:/usr/tmp>perl5.000 -v 8:43
This is perl, version 5.000
Copyright 1987-1994, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5.0 source kit.
---
In general, is perl5 backward compatible with perl4?
--
"When you try them you _know_ why they're there.More security, more freshness."
(PGP key: send email with Subject: request pgp key)
(ASCII for text only messages)
Re: Something to think about......
Author: Tom Christiansen
Date: Fri, 21 Oct 1994 12:24
Date: Fri, 21 Oct 1994 12:24
34 lines
2007 bytes
2007 bytes
:-> In comp.lang.perl, robert@steffi.dircon.co.uk (Robert Nicholson) writes:
:Mail2News stopped working this morning...
:
:Guess why..
:This is perl, version 5.000
:
:In general, is perl5 backward compatible with perl4?
:--
In general yes, in specific, that depends on how fast and loose
a game you were playing.
The two most frequent areas are:
1) w/i double-quoted strings, you have to escape @ signs
if you want them not to interpolate, and in fact, if
you want your program to compile. (compiler catches
these)
2) a previously declared subroutine whose names is mentioned
as a bareword is actually called; it's no longer a string.
(compiler catches these if you use strict subs)
There are a few others, but these two seem to get people most often.
They're all listed in the perltrap man page, although we may of course
have missed some. If you find others, do please tell us.
--tom
--
Tom Christiansen Perl Consultant, Gamer, Hiker tchrist@mox.perl.com
"The reason you subscribe to a mailing list is you don't get all
the crap you get on netnews. "
--Dennis Ritchie
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads