Erosia has asked for the wisdom of the Perl Monks concerning the following question:
Can you by any chance spot what's wrong with this picture? It's a very simple program although I am so new to Perl, that it seems like an unsolveable riddle to me. Thank you.#!/usr/bin/perl # readwrite.pl while ($line = <STDIN>) { chomp($line); @tokens = split(" ", $line); for $tok (@tokens) { ) print "$tok "; } print "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "Can't open perl script..." :-(
by johngg (Canon) on Feb 15, 2010 at 16:16 UTC | |
|
Re: "Can't open perl script..." :-(
by Utilitarian (Vicar) on Feb 15, 2010 at 15:22 UTC | |
|
Re: "Can't open perl script..." :-(
by Corion (Patriarch) on Feb 15, 2010 at 16:20 UTC | |
|
Re: "Can't open perl script..." :-(
by cdarke (Prior) on Feb 15, 2010 at 15:36 UTC | |
|
Re: "Can't open perl script..." :-(
by Anonymous Monk on Feb 15, 2010 at 15:25 UTC | |
|
Re: "Can't open perl script..." :-(
by 7stud (Deacon) on Feb 15, 2010 at 16:22 UTC | |
by Erosia (Novice) on Feb 15, 2010 at 18:28 UTC | |
by molecules (Monk) on Feb 15, 2010 at 19:10 UTC | |
by AnomalousMonk (Archbishop) on Feb 15, 2010 at 20:58 UTC | |
|
Re: "Can't open perl script..." :-(
by 7stud (Deacon) on Feb 16, 2010 at 06:16 UTC |