Path: utzoo!utgpu!watserv1!watmath!att!cbnewsd!weiss From: weiss@cbnewsd.ATT.COM (edward.j.weiss) Newsgroups: comp.lang.perl Subject: numeric from string Message-ID: <13537@cbnewsd.ATT.COM> Date: 8 Mar 90 00:27:40 GMT Reply-To: weiss@cbnewsd.ATT.COM (edward.j.weiss,ihp,) Organization: AT&T Bell Laboratories Lines: 20 To start out I'm using Release 3.0 PatchLevel 12. Try out: perl -e '$m="0777"; $n = $m + 1; print $n,"\n";' What should the answer be? I would guess that 0777 would be converted to a number by using 8 as a base, but it doesn't. Base 10 is used. MisFeature? I found trying to use chmod like: $mode=<>; chop; chmod($mode,$file); -- Ed Weiss "I thought it was generally accepted, sir, that att!ihlpf!spock Vulcans are an advanced and most honorable race." "They are, they are. And damn annoying at times."