Sorry to bother everyone, but i was working on this yesterday and i 
couldn't get it to work.  I guess i have the wrong syntax for passing 
variables in from the command line. 

Here's my script:

===== crypt.pl =====
#!/usr/bin/perl
my $pwd = $1;
my $seed = $2;
my $key = substr(crypt("$pwd","$seed"),2);
print $key;
=================
 
For example, I want to type:
 
         crypt.pl  string1 string2
 
 and it should spit out the value of $key.

Right now both variables are returning null.  Any suggestions?

Reply via email to