Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Special case! [was: Re: Re: Backward compatibility: $^O in perl 4]

by bronto (Priest)
on May 08, 2003 at 09:01 UTC ( #256487=note: print w/replies, xml ) Need Help??


in reply to Re: Backward compatibility: $^O in perl 4
in thread Backward compatibility: $^O in perl 4

Actually there is at least one special case: AIX. AIX does it its own way: uname -r returns the minor version of the OS, while uname -v returns the major version; this is the output on AIX 4.3:

bash$ uname -s AIX bash$ uname -r 3 bash$ uname -v 4

With your code the system will appear to have AIX 3 intead of 4...

Ciao!
--bronto


The very nature of Perl to be like natural language--inconsistant and full of dwim and special cases--makes it impossible to know it all without simply memorizing the documentation (which is not complete or totally correct anyway).
--John M. Dlugosz

Replies are listed 'Best First'.
Re: Special case! [was: Re: Re: Backward compatibility: $^O in perl 4]
by krujos (Curate) on May 08, 2003 at 14:29 UTC
    Whoa. I have never caught that before, never had to worry about versions on AIX. Thanks, I will change my code accordingly. You Rock!
    Josh

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://256487]
help
Chatterbox?
[LanX]: values %{ $DBI->fetchrow_has href('column_name' }
[LanX]: ehm ... fetchall_hashref
[Jenda]: my int @a = ^5_000_000 Coerces the argument to Numeric, and generates a range from 0 up to (but excluding) the argument.
[Jenda]: The apparent design principle of Perl6 operators was "Let's confuse 'em dudes." Whose braindead idea was this particular operator and the three hundred around it?

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2018-07-16 16:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (344 votes). Check out past polls.

    Notices?