user-pic

perl_learner

  • Commented on Exercise on subroutine
    This is my try: #!/usr/bin/perl -w print "who do i greet?\n"; @person = qw / wilma? fred? Barney? Betty? /; foreach $person(@person) { $person = "\t$person"; $person .="\n"; } print "\n @person\n"; print "Pick one to greet now\n"; @greet =...
  • Posted Exercise on subroutine to perl_learner

    hi there,
    It reads:
    write a subroutine named greet, that welcomes the person you name by telling them the name of the last person it greets.

    like; greet('fred');
    greet('B…

Subscribe to feed Recent Actions from perl_learner

No responses to comments.

Subscribe to feed Responses to Comments from perl_learner

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.