javascript qr code scanner Determining Your Platform in Objective-C

Encoder PDF-417 2d barcode in Objective-C Determining Your Platform

Determining Your Platform
PDF-417 2d Barcode Reader In Objective-C
Using Barcode Control SDK for iPhone Control to generate, create, read, scan barcode image in iPhone applications.
PDF-417 2d Barcode Generation In Objective-C
Using Barcode generator for iPhone Control to generate, create PDF 417 image in iPhone applications.
The $^O variable contains the name of the current platform The information provided may not be very descriptive if you don t know the significance of the name returned, but it should at the very least enable you to identify the main platform Alternatively, you can use the value of the $Config{'archname'} variable (available via the Config module), which contains the name of the architecture on which the current Perl interpreter was compiled The architecture string returned includes the platform name and the hardware architecture on which the binary was built Note the difference here: the build and the current platform are not essentially identical, although it may be safe to assume they are compatible For example, a Perl binary built on Solaris 24 will also run on Solaris 26, or even Solaris 7 However, a Perl binary for the Intel version of Solaris will not run on the SPARC version The value of $Config{'osname'} will tell you the name of the operating system on which the binary was built Some sample operating system names and $^O and $Config{'archname'} values are shown in Table 24-1 On many platforms (particularly those derived from Unix), the value is extracted from that returned by uname In all cases, the value of $^O is probably of more use than the architecture name for writing cross-platform scripts
PDF 417 Recognizer In Objective-C
Using Barcode reader for iPhone Control to read, scan read, scan image in iPhone applications.
Printing Barcode In Objective-C
Using Barcode creation for iPhone Control to generate, create bar code image in iPhone applications.
FINE-TUNING APPLICATIONS
Creating PDF 417 In Visual C#.NET
Using Barcode generation for VS .NET Control to generate, create PDF 417 image in Visual Studio .NET applications.
Making PDF417 In Visual Studio .NET
Using Barcode drawer for ASP.NET Control to generate, create PDF 417 image in ASP.NET applications.
Perl: The Complete Reference
Draw PDF-417 2d Barcode In VS .NET
Using Barcode creator for .NET Control to generate, create PDF417 image in .NET applications.
Encoding PDF 417 In VB.NET
Using Barcode generation for Visual Studio .NET Control to generate, create PDF 417 image in Visual Studio .NET applications.
MS-DOS Windows 95 Windows NT Mac OS Linux SunOS 4 Solaris Table 24-1
UPC-A Supplement 5 Generation In Objective-C
Using Barcode drawer for iPhone Control to generate, create UPC Symbol image in iPhone applications.
Barcode Creator In Objective-C
Using Barcode maker for iPhone Control to generate, create barcode image in iPhone applications.
$^O/$Config{'osname'}
Code 128 Code Set B Generator In Objective-C
Using Barcode printer for iPhone Control to generate, create Code 128C image in iPhone applications.
Generate EAN13 In Objective-C
Using Barcode maker for iPhone Control to generate, create EAN-13 Supplement 5 image in iPhone applications.
dos MSWin32 MSWin32 MacOS linux sunos solaris
UPC E Drawer In Objective-C
Using Barcode drawer for iPhone Control to generate, create UPC-E Supplement 2 image in iPhone applications.
UPC - 13 Creation In None
Using Barcode encoder for Word Control to generate, create EAN-13 image in Microsoft Word applications.
$Config{'archname'}
Draw UCC - 12 In Visual Basic .NET
Using Barcode printer for .NET Control to generate, create EAN128 image in Visual Studio .NET applications.
Bar Code Encoder In .NET Framework
Using Barcode generator for ASP.NET Control to generate, create bar code image in ASP.NET applications.
MSWin32-x86 MSWin32-x86 i686-linux sun4-sunos sun4-solaris
Encode 1D Barcode In .NET
Using Barcode generation for VS .NET Control to generate, create Linear Barcode image in .NET applications.
UPCA Scanner In Java
Using Barcode decoder for Java Control to read, scan read, scan image in Java applications.
Operating Systems and Their Internal Equivalents
Code 128 Code Set C Generation In Java
Using Barcode generation for Java Control to generate, create Code 128 image in Java applications.
Drawing ANSI/AIM Code 128 In None
Using Barcode creation for Font Control to generate, create Code 128B image in Font applications.
Determining the Perl Version
The Perl version relates very little to the level of support on different platforms However, it can sometimes be a useful indicator of whether an official release exists for a platform, as well as a useful reference point for a specific feature, irrespective of the platform on which you are working If all you want to do is find out what version of Perl you are using, the obvious solution is to check the version of Perl using the $] variable This is the version number of the Perl interpreter added to the patch level divided by one thousand For example, v5004 is Perl version 5, patch level 4 Sub-version numbers to the patch level are included for the maintenance and development releases of Perl and are indicated as the release number divided by 100,000: a value of 500553 is made up of Perl version 5, patch level 5, and development release 53 The maintenance release number increases from 1 to 49 and developmental releases from 50 to 99 Since Perl 56, the information returned is much easier to determine For a start, the location of the version number has changed An old-style version number can still be found in $], but the new, post-56 version number is stored in $^V It s also stored as a v-string, so you need a different way to print the version:
printf("Perl Version: %vd\n",$^V);
There are actually three components to the new-style version number: the major version number, the minor version number, and the patch level For example, the first version of Perl 56 was actually 560
24:
Cross-Platform Migration Traps
You can use the contents of the perldelta man page to determine what functions and abilities are available within each version of the Perl interpreter The next section presents specific ways of determining the supported functions without requiring prior knowledge If you want to restrict a script so it runs only on certain versions, you should use the require keyword with a numerical or v-string value When you supply a numerical value, the comparison is made against the $] special variable if the value of $] is numerically higher than the value supplied, the script is allowed to continue:
require 5005_03;
However, if you supply a v-string, the value of the string is compared with $^V:
require v561; require 561;
Thus, to ensure the script runs only on the very latest stable version of Perl, you might want to try,
require v56;
although this will probably be out of date by the time you read this If the value specified does not match the current Perl interpreter, a run-time error will be produced:
perl -e 'require 6;' Perl 6 required this is only version 500553, stopped at -e line 1 FINE-TUNING APPLICATIONS
Copyright © OnBarcode.com . All rights reserved.