in reply to How to combine these two files?
Can someone show me some head-ups on how to generate an output like this?
#!/usr/bin/perl use strict; use warnings; print <<'__xxx__'; Item Availability Broken Newly_order Total_Stock Laptop_Monitor 10 2 15 (10-2+15) Laptop_Bag 25 1 20 (25-1+20) Office_Chair 20 1 10 (20-1+10) __xxx__
Or did you want to generate that output from any input?
Perlmonks is no code writing service. Show your code, then we'll help you improve it.
I am new to Perl and this is the first assignment that I get.
Well, start with perlintro and the notes you made before the assignment.
How would you solve this problem in another language, like C or Java? Write that down, then convert it to Perl.
If you are new to programming, imagine you had an incredible stupid, but diligent assistent. How would you explain the job to him, in baby steps and simple language? ("Open the first file. Read a line from the first file. ...") From there, translating to Perl, C, Java or most other computer languages is quite easy.
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to combine these two files?
by chaney123 (Acolyte) on Aug 29, 2017 at 07:48 UTC | |
by Corion (Patriarch) on Aug 29, 2017 at 08:14 UTC | |
by Laurent_R (Canon) on Aug 29, 2017 at 08:01 UTC |