G'day Anand,

Welcome to the monastery.

I suspect you're doing something like this:

$ perl -le ' my $password = "abc$def"; print $password; ' abc

With the warnings pragma, you'd get:

$ perl -le ' use warnings; my $password = "abc$def"; print $password; ' Name "main::def" used only once: possible typo at -e line 3. Use of uninitialized value $def in concatenation (.) or string at -e l +ine 3. abc

Now you get a warning (which might get lost in log files, scrolled off the screen, or otherwise not be noticed) but the problem remains (i.e. 'abc' is still output).

With the strict pragma, you'd get:

$ perl -le ' use strict; use warnings; my $password = "abc$def"; print $password; ' Global symbol "$def" requires explicit package name at -e line 4. Execution of -e aborted due to compilation errors.

Now you have an error which would be pretty hard not to notice as your program has aborted before it even started to run. If you follow the strict link I provided, you'll find more information about this under "strict vars".

So, the first lesson to take away from this is to add

use strict; use warnings;

to start of all your scripts (unless you have a very good reason for not doing so).

Anyway, that's all guesswork on my part as you haven't posted any code. All user input should be viewed as suspicious so I won't be suggesting ways to fix code I haven't seen: I could end up causing you far worse problems than a simple failed login. Have a read of "How do I post a question effectively?" then, following those guidelines, update your post with something we can work with ("How do I change/delete my post?" tells you how to do that).

-- Ken


In reply to Re: Need help in while entering password by kcott
in thread Need help in while entering password by anandooty

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.