CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Post deleted by SamTheRock1990

 



SamTheRock1990
New User

Mar 18, 2013, 7:58 AM

Post #1 of 4 (351 views)
Post deleted by SamTheRock1990

 


Laurent_R
Veteran / Moderator

Mar 18, 2013, 2:24 PM

Post #2 of 4 (340 views)
Re: [SamTheRock1990] Perl Help: .csv output [In reply to] Can't Post

The best would be if you would provide us with an excerpt of the CSV file that you produce, so that we can have an idea of what it is looking like.

Or you could also give us the data input.

But without any of your data, it is a bit difficult to guess what is going on.


lightspd
Novice

Mar 18, 2013, 3:15 PM

Post #3 of 4 (336 views)
Re: [SamTheRock1990] Perl Help: .csv output [In reply to] Can't Post

I know it can be a pain sometimes, if you have a lot of code, but also would help to know what your variables are. What is @santhosh_spox_list, I see you pushing to @rock_spox_list, but I don't see anything with @santhosh_spox_list other than you read from it.


BillKSmith
Veteran

Mar 18, 2013, 3:27 PM

Post #4 of 4 (336 views)
Re: [SamTheRock1990] Perl Help: .csv output [In reply to] Can't Post

The code fragment that you provide contains errors and several examples of poor coding practice.

The subroutine parse_bus has no closing brace (and is never called).

The subroutine sct_info is never called.

Accessing global data within a subroutine is almost always a poor practice. Pass your inputs as arguments and your outputs with return.

You are printing the content of the array @santhosh_spox_list which is neither declared nor assigned any values.

Post a complete program and we can be much more helpful.
Good Luck,
Bill

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives