in reply to Re^2: Functions (Return V Print)
in thread Functions (Return V Print)

If you're returning title are you assigning it to a variable on it's return?
#!/opt/perl/bin/perl use strict; use warnings; my $title="name"; print "$title\n"; $title = &function64("name"); print "$title\n"; sub function64 { my ($title) = @_; $title="$title " x 3; return ($title); }

Replies are listed 'Best First'.
Re^4: Functions (Return V Print)
by cjb (Friar) on Feb 04, 2011 at 11:22 UTC

    Ignore me, you are, just re-read your original post.

    Errr, ignore my ignore, you've not shown enough code. Could you show us where you're calling the function?

    Updated: 20110204 11:53 GMT