RiskiiDingo has asked for the wisdom of the Perl Monks concerning the following question:
I cannot get this program to print in konsol and I do not understand where I've gone wrong.
I'm new to this so I'm sure its something simple but I can't spot it...
#!/usr/bin/perl use strict; use warnings; #Open up the data and read it to program my ( $data, $transType, $accNumber); open FILE, "sampleTransactions01.dat" or die$!; $data = <FILE>; my @values = split(',|\(', $data); #assign the data a name $transType=$values[0]; $accNumber=$values[1]; #Printing data # print "***************************************************\n Transaction Type:$transType\n Account Number:$accNumber\n ***************************************************\n"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't get text to print
by choroba (Cardinal) on Oct 20, 2014 at 10:38 UTC | |
|
Re: Can't get text to print
by vinoth.ree (Monsignor) on Oct 20, 2014 at 10:44 UTC | |
|
Re: Can't get text to print
by LanX (Saint) on Oct 20, 2014 at 10:37 UTC | |
by vinoth.ree (Monsignor) on Oct 20, 2014 at 10:50 UTC | |
by marto (Cardinal) on Oct 20, 2014 at 10:53 UTC | |
by ww (Archbishop) on Oct 20, 2014 at 14:02 UTC | |
|
Re: Can't get text to print
by ww (Archbishop) on Oct 20, 2014 at 13:23 UTC |