Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: SWISS knife...

by Alex the Serb (Monk)
on Jan 16, 2002 at 16:06 UTC ( [id://139180]=note: print w/replies, xml ) Need Help??


in reply to SWISS knife...

well first 4 lines takes arguments that are passed to function and put them in variables that are scalars (they begin with $).
"shift" means: take from @_ array first element .. $_[0] and than move one place to the left ($_[1] becomes $_[0], etc)

if scalar $text is empty than it displays the message.

if you dont know OOP in Perl you should read perltoot, but in short:

the name of the class is passed in first argument of function. Then the new class of that type is created. Then new atribute is added to the new class which references the data in $text variable
that is what $self->{_text} = \$text; means.

You could gave us the content of SWISS.pm module which have definitions of classes, I think.

type: perl -e "print @INC"

that will show you where to search for that SWISS.pm

Log In?
Username:
Password:

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

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

    No recent polls found