There's more than one way to do things | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Thanks, now it is working How about if I push "C++" and "Java" into the complex data by using $student1->add_courses(["C++", "Java"]);?I couldn't find in Internet info about pushing the array into a compl. data like $self->{"Course(s)"}=[<STDIN>]First, at the user interface I enter some data (like: Enter the courses: C, PHP |CTRL+D|) and then program must push additionals by $student1->add_courses(["C++", "Java"]). How can I use properly my push() func. to this data structure? This func. that I wrote isn't working:
In reply to Re^2: Nested Data Structures, OOP
by programmer.perl
|
|