use strict; use warnings; { print "\n" x 5; print "***********************************************#\n"; print "################################################\n"; print "### ###\n"; print "### ###\n"; print "### Lockness ###\n"; print "### ###\n"; print "### ###\n"; print "################################################\n"; print "################################################\n"; print "\n" x 4 ; print "Infinity Resource Group"; print "\n" x 4; print "By: EvidencE \n"; print "================================================\n"; print "For help type 'help'"; } while(1){ print "\n" x 3; print "Lockness: "; my $input; $input = <STDIN>; chomp($input); if($input eq "help"){ print "\n" x 2 ; print "Here is the list of avaliable commands:\n"; print "================\n"; print "\n" x 2; print " 'password' - Set the password for a file\n\n"; print " 'exit' - Exit this program\n\n"; print "================\n"; } elsif($input eq "password"){ print "\n" x 2 ; print "-------------------------------"; print "\n! Type the path and file name !\n"; print "-------------------------------"; print "\n" x 2; print " PATH/FILE: "; my $file; $file = <STDIN>; chomp($file); print "\n"; print " ------------\n"; print "\n"; my $pass; print " PASSWORD: "; $pass = <STDIN>; chomp ($pass); print "\n"; print " ------------\n"; print "\n"; my $pass2; print " RETYPE PASS: "; $pass2 = <STDIN>; chomp($pass2); print "\n" x 3; print "================"; print "\n" x 2; if($pass ne $pass2){ print "\n ERROR: You misstyped the passwords."; print "\n"; print "================\n\n"; } else{ print "\n" x2; print "================\n"; print "The password is set for '$file'."; print "\n"; print "================\n"; } } elsif($input eq "exit"){ print "\nThis should exit this shit....."; print "\n"; } else{ print "\n" x 2 ; print "Nothing here yet.....\n"; } }

In reply to Passworder by EvidencE

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.