Titan Fusion

Alexandar Tzanov's Personal Blog

Tag: Perl

  • How To Split a Phone Number [PERL]

    Phone numbers, as we know, are most commonly made of three elements (area code) prefix-number. If your program or a script has to process phone numbers some times it is useful to separate the three elements and store them in separate variables. Below I will show you how you can achieve this in Perl using the build-in substr function.