merrymonk has asked for the wisdom of the Perl Monks concerning the following question:
$h{N} = 260; $h{G} = 02 ; $h{X} = 142.05; $h{Y} = 649.62; $h{I} = 77.33; $h{J} = 58.34; $h{H} = 2; $h{M} = 25;
What is the most effective way of using Perl to ‘split’ the data so I can create the hash?N260G02X142.05Y649.62I77.33J58.34H2M25 N265M20 N270G45 N275G01X304.78Y608.8C45.91M25 N280M20 N285G46C0 N290G03X324.39Y638.4I-69.58J67.4H2M25 N295M20 N300G45 N305G01X180.04Y592.89C326.5M25 N310X279.77Y586.78C26.5 N315X195.39Y584.57C336.5 N320X228.31Y579.58C355.92
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Efficient split for alpha numeric pairs in a row
by choroba (Cardinal) on Jul 01, 2015 at 07:24 UTC | |
|
Re: Efficient split for alpha numeric pairs in a row
by BrowserUk (Patriarch) on Jul 01, 2015 at 07:55 UTC | |
by merrymonk (Hermit) on Jul 01, 2015 at 08:24 UTC | |
|
Re: Efficient split for alpha numeric pairs in a row
by johngg (Canon) on Jul 01, 2015 at 09:55 UTC | |
by BrowserUk (Patriarch) on Jul 01, 2015 at 10:18 UTC | |
|
Re: Efficient split for alpha numeric pairs in a row
by AnomalousMonk (Archbishop) on Jul 01, 2015 at 17:13 UTC | |
|
Re: Efficient split for alpha numeric pairs in a row
by locked_user sundialsvc4 (Abbot) on Jul 01, 2015 at 12:07 UTC |