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
In reply to Re: How to combine these two files?
by afoken
in thread How to combine these two files?
by chaney123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |