Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > Perl
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Perl section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 4th, 2011, 12:01 PM
Registered User
Join Date: Apr 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Post Oct() function

I'm new to Perl, and want to know what is the difference between oct(077) and oct("077")?
Old May 5th, 2011, 06:44 AM
Authorized User
Join Date: Aug 2009
Posts: 23
Thanks: 0
Thanked 2 Times in 2 Posts

Originally Posted by pal.lalit View Post
I'm new to Perl, and want to know what is the difference between oct(077) and oct("077")?
oct operates on strings, and numbers starting with 0 are interpreted as octal numbers, so oct(077) is oct(oct("077")).

Similar Threads
Thread Thread Starter Forum Replies Last Post
search function and trim function sett Excel VBA 1 April 23rd, 2010 09:20 PM
Wrox 50% off eBooks sale through Oct 31, 2007 jminatel Forum and Wrox.com Feedback 0 September 14th, 2007 03:22 PM
send variable in function to another function schoolBoy Javascript How-To 6 March 3rd, 2007 09:16 AM
How to call javascript function from VB function vinod_yadav1919 VB How-To 0 February 13th, 2006 06:03 AM
retreive function/Line from macro or function? MikoMax J2EE 0 April 1st, 2004 04:42 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.