Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Save Split to Array

by spickles (Scribe)
on Aug 28, 2009 at 16:13 UTC ( [id://791958]=note: print w/replies, xml ) Need Help??


in reply to Re: Save Split to Array
in thread Save Split to Array

NetWallah -

I can handle all kinds of criticism - I realize Perl isn't my strong suit. But when someone responds with 'Instant code smell at this point. I don't even want to look further.' that's just not even necessary. There's two options there:
(1) Ignore your gut reaction to respond that way and just don't say anything (our moms taught us that)
(2) Respond with a way to help me understand why I get the 'use of uninitialized value' errors, thus resulting in my 'initialization string' at the opening of my script
As for the database stuff, I can, and do use that often. I have written another PHP/Perl/MySQL interface that allows my company to process hundreds of lightweight access points to the customer's specifications, configure them, and provide a report. For my current application, it's just outputting a list of commands to be run on a switch that isn't local to me, and the output is going to be transient.

Replies are listed 'Best First'.
Re^3: Save Split to Array
by NetWallah (Canon) on Aug 28, 2009 at 20:39 UTC
    merlyn's reference to "Code Smell" (Wikipedia) comes from recent (~8 years) software development vocabulary. I do not believe he intended it to be derogatory.

    Regarding your issue:
    Use of uninitialized value $_[0] in string eq at ***** line 63, <> line 2
    This is a result of your call:
    vlan_number();
    on line 118.

    That call does not pass any parameters to "vlan_number():.

    When you request $_[0], at line 62, it asks for the first parameter in @_;
    Since @_ (Parameter list) is empty, you get the warning.

         Potentia vobiscum ! (Si hoc legere scis nimium eruditionis habes)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (1)
As of 2024-04-18 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found