gurpreetsingh13 has asked for the wisdom of the Perl Monks concerning the following question:
This also works.foreach(`cat file.pl`){ foreach(split(//,)){ print ord; } }
But this one fails.foreach(`cat file.pl`){ print ord foreach(split(//,)); }
Tried to search for something similar but couldn't find out. Thanks in advanceprint ord foreach(split(//,)) foreach(`cat file.pl`);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Multiple foreach loops in single statement
by ikegami (Patriarch) on Oct 23, 2012 at 16:40 UTC | |
by gurpreetsingh13 (Scribe) on Oct 24, 2012 at 03:36 UTC | |
by Athanasius (Archbishop) on Oct 24, 2012 at 04:11 UTC | |
by gurpreetsingh13 (Scribe) on Oct 24, 2012 at 14:51 UTC | |
by gurpreetsingh13 (Scribe) on Oct 24, 2012 at 13:22 UTC | |
by Anonymous Monk on Oct 24, 2012 at 13:30 UTC | |
by Athanasius (Archbishop) on Oct 24, 2012 at 13:56 UTC | |
by ikegami (Patriarch) on Mar 02, 2013 at 22:54 UTC | |
|
Re: Multiple foreach loops in single statement
by blue_cowdawg (Monsignor) on Oct 23, 2012 at 16:39 UTC |