You are confused on several points. In Perl, a 'file' is usually a disc file which we read and write. There is no such function as 'sustr()'. There is no such thing as a variable 'XYZ'. The variable '$XYZ' is a scalar which may contain a number, a single string, or a reference. The variable '@XYZ' is an array which may contain a 'list' of almost anything. You appear to have list of SSN's. If you store them in an array, You can easily add to the end of this list with the function 'push()'.
use strict;
use warnings;
my @XYZ = (
'458-43-0764',
'453-45-3214',
'462-63-4878',
'453-99-0002',
'462-75-5714',
'631-03-6456',
'466-91-7461',
'467-17-2570',
'454-69-1673',
'258-61-1036',
);
push @XYZ, '111-22-3333';
local $, = "\n"; # Separate fields in output
print @XYZ;
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
|
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.