blaui has asked for the wisdom of the Perl Monks concerning the following question:
I have this e.g. string:
and I want to get out 90$temp = "BCInletTemperature = 90[C]";
this works. But how I now can split the contains from $tmp, so that I can get out the 90?(undef,$tmp) = split(/=/,$tmp[5]);
How can I get out the number?BCInletTemperature = 33.56[C]
Regards, blaui
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to split a string at [ ?
by Athanasius (Archbishop) on Jul 05, 2018 at 07:04 UTC | |
by AnomalousMonk (Archbishop) on Jul 05, 2018 at 13:25 UTC | |
|
Re: how to split a string at [ ?
by Corion (Patriarch) on Jul 05, 2018 at 07:07 UTC | |
by blaui (Initiate) on Jul 06, 2018 at 12:29 UTC | |
by Corion (Patriarch) on Jul 06, 2018 at 13:44 UTC | |
|
Re: how to split a string at [ ?
by Laurent_R (Canon) on Jul 05, 2018 at 07:52 UTC | |
|
Re: how to split a string at [ ?
by AnomalousMonk (Archbishop) on Jul 05, 2018 at 13:14 UTC | |
by blaui (Initiate) on Jul 06, 2018 at 12:22 UTC | |
by hippo (Archbishop) on Jul 06, 2018 at 12:55 UTC | |
by haukex (Archbishop) on Jul 06, 2018 at 12:58 UTC |