Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^4: Filter and writing error log file

by newtoperlprog (Sexton)
on Jul 23, 2014 at 15:20 UTC ( [id://1094808]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Filter and writing error log file
in thread Filter and writing error log file

I have one loop related question. I have defined an array of alphabet from ("A" .. "Z") but after reading a long file the alphabets end and the program shows error of uninitialized values.

My questions is how can I define an array of alphabets which can go to AA, BB, CC and ...so on when the "A" .. "Z" ends.

  • Comment on Re^4: Filter and writing error log file

Replies are listed 'Best First'.
Re^5: Filter and writing error log file
by choroba (Cardinal) on Jul 23, 2014 at 15:26 UTC
    Alphabet stands for the whole series of letters. Use the word "letter" for a single character like "A" or "Z", please, not alphabet.

    Don't create an array. Just start with

    my $letter = 'A';

    In every iteration, do

    $letter++;

    and let the magic do all the work.

    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Re^5: Filter and writing error log file
by newtoperlprog (Sexton) on Jul 23, 2014 at 17:14 UTC

    Thanks for explaining the '^' behaviour and loop through the letters.

    I have some more doubts and questions regarding one of my another programs which I have written but its very crude and i want some help in making in more robust.

    Is it ok to post it here and get some help.

    Thanks

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1094808]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-25 08:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found