?
Solved

I need a password seed script

Posted on 2011-02-10
2
Medium Priority
?
471 Views
Last Modified: 2012-05-11
first string
"face"
second string
"1234"

I need a perl scipt to return
f1a2c3e4

one letter of each followed by sedond letter of each followed by third letter of each followed by 4th letter of each.

0
Comment
Question by:TIMFOX123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
torvir earned 2000 total points
ID: 34865151
#!perl

print "First string: ";
chomp(my $s1=<STDIN>);
print "Second string: ";
chomp(my $s2=<STDIN>);
for (my $n=0; ($n<length $s1) || ($n<length $s2); $n++ ) {
      print substr($s1, $n, 1).substr($s2, $n, 1);
}
print "\n";
0
 

Author Closing Comment

by:TIMFOX123
ID: 34865213
this does it !!!  

thx
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
VM backup deduplication is a method of reducing the amount of storage space needed to save VM backups. In most organizations, VMs contain many duplicate copies of data, such as VMs deployed from the same template, VMs with the same OS, or VMs that h…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question