SCIENTIFIC-LINUX-USERS Archives

November 2015

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Konstantin Olchanski <[log in to unmask]>
Reply To:
Konstantin Olchanski <[log in to unmask]>
Date:
Mon, 23 Nov 2015 16:51:33 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
On Mon, Nov 23, 2015 at 02:58:35PM -0800, ToddAndMargo wrote:
> 
> "anonymous references"? Is that the mysterious "->" thingy?
> 
>      $ua = LWP::UserAgent->new;
>      $ua->timeout ( MaxTime1 );
>      $ua->show_progress;
> 

perl-for-dummies to the rescue, read section about object-oriented programming in perl.

Quick answer, it is same as C++:

std::string *s = new std::string;
s->length();
s->c_str();

-- 
Konstantin Olchanski
Data Acquisition Systems: The Bytes Must Flow!
Email: olchansk-at-triumf-dot-ca
Snail mail: 4004 Wesbrook Mall, TRIUMF, Vancouver, B.C., V6T 2A3, Canada

ATOM RSS1 RSS2