jjmoka has asked for the wisdom of the Perl Monks concerning the following question:
$$xmlScalar_r = pack('U0C*', unpack('U0C*', SGMLencode_data($$xmlScalar_r)||(defined($$xmlScalar_r) ? $$xmlScalar_r : '') ));
regardless of everything in the end, it is then just something like:
I see nothing different which cannot be done as just$string = ... $x = pack('U0C*', unpack('U0C*', $string));
so it would seem a useless usage of pack and unpack being the template the same.$x = $string #or without even $string, just $x = ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pack on unpack with same template
by haukex (Archbishop) on Jul 28, 2021 at 09:07 UTC | |
by ikegami (Patriarch) on Jul 28, 2021 at 09:31 UTC | |
by ikegami (Patriarch) on Jul 28, 2021 at 21:11 UTC | |
|
Re: pack on unpack with same template
by kcott (Archbishop) on Jul 28, 2021 at 01:30 UTC | |
by jjmoka (Beadle) on Jul 28, 2021 at 06:42 UTC | |
|
Re: pack on unpack with same template
by syphilis (Archbishop) on Jul 28, 2021 at 03:54 UTC | |
by kcott (Archbishop) on Jul 28, 2021 at 04:54 UTC | |
by syphilis (Archbishop) on Jul 28, 2021 at 06:39 UTC | |
by hippo (Archbishop) on Jul 28, 2021 at 08:56 UTC | |
by kcott (Archbishop) on Jul 28, 2021 at 07:06 UTC | |
by jjmoka (Beadle) on Jul 28, 2021 at 06:46 UTC |