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

Re^3: 'undef' in the matrix instead of values!!!

by citromatik (Curate)
on Feb 06, 2008 at 14:57 UTC ( [id://666575]=note: print w/replies, xml ) Need Help??


in reply to Re^2: 'undef' in the matrix instead of values!!!
in thread 'undef' in the matrix instead of values!!!

You can't include a module into your program just by putting its name in the arguments list. They must be included at compile time by using the use statement or at execution time by using require and import.
Maybe one way to do what you want could be:

my $Measure = shift; eval "require $Measure;import $Measure;"; ## Now, luckily you can use it: $Measure->new();
citromatik

Replies are listed 'Best First'.
Re^4: 'undef' in the matrix instead of values!!!
by smilly (Novice) on Feb 08, 2008 at 02:29 UTC
    atually that dosnt matter wid or widout i imported the module... it dosnt work :(
Re^4: 'undef' in the matrix instead of values!!!
by smilly (Novice) on Feb 08, 2008 at 03:33 UTC
    hey guys im done! debugged cooooollllll:D it works) life rocks:P

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-04-26 09:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found