home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewse!budnick
- From: budnick@cbnewse.cb.att.com (Mary Jo Budnick)
- Subject: easy question?: substrings
- Organization: AT&T
- Distribution: usa
- Date: Wed, 26 Aug 1992 21:35:16 GMT
- Message-ID: <1992Aug26.213516.22813@cbnewse.cb.att.com>
- Lines: 19
-
- Hi! I just started to use Perl and can't find the info in the
- Wall/Schwartz book very easily to solve my problem. Help me out?
-
- All I want to do is to change a string in the format of either
- 0xffffff00 or ffffff00 into the format
- of 255.255.255.0
-
- The part I'm having trouble w/ is splitting the ffffff00 string
- into an array of: ff ff ff 00. After I do that I plan to
- change these array elements into decimal from hex and join
- with a ".". But, I can't find a good way to successively cut
- 2 chars from the ffffff00 string.
-
- Thanks!
-
- Please send mail to budnick@ihspa.att.com
-
- Mary Jo Budnick
-
-