Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Newbie question under time constraint

by roboticus (Chancellor)
on Aug 04, 2019 at 19:37 UTC ( [id://11103878]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    print "\nHow does it print?\n";
    $E1->print_student();
    
  2. or download this
    $ perl classes.pl
    What does Data::Dump see for my Employee?
    bless({ hourlywage => 50, hours => 40, name => "George" }, "Employee")
    
    How does it print?
    
  3. or download this
    $ perl classes.pl
    What does Data::Dump see for my Employee?
    ...
    
    How does it print?
    Employee info: name: George hours: 40 wage: 50
    
  4. or download this
    use strict;
    use warnings;
    ...
    
    print "\nDoes get_EmployeeList work?\n";
    pp($L->get_EmployeeList());
    
  5. or download this
    $ perl classes.pl
    What does Data::Dump see for my Employee?
    ...
      bless({ hourlywage => 35, hours => 30, name => "Ellen" }, "Employee"
    +),
      bless({ hourlywage => 5, hours => 10, name => "Phideaux" }, "Employe
    +e"),
    ]
    
  6. or download this
    package EmployeeList;
      . . .
    ...
          # print "current employee name is: ", $anEmployee->{name}, ".\n"
    +;
       }
    }
    
  7. or download this
    # Get a list of employees between ages 30 and 50 who make more than $2
    +5/hr
    my $interesting = $L->query( [ "AGE",    "BETWEEN", 30, 50 ],
                                 [ "HOURLY", "ABOVE",   25     ],
                               );
    
  8. or download this
    my $interesting = $L->filter_age( 30, 50 )
                        ->filter_hourly( 25, 99999999999999 );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-19 19:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found