Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

URI, URL or something else?

Name: Anonymous 2011-01-19 13:33

Hi.

I need to send some files to many destinations. Some are mails, some are files in some disk, some are bcp's that must be executed.

Example:

A report can be sent in .txt to a system operator via mail, in .pdf to the guy with the tie, the BCP to some table in some database, and copy a xls in some directory.

I have separate classes for mail and bcp.

But i want to make  the "copy to a directory" a very generic class, so it supports both ftp:// and file://. Are those things "URI" or "URL's"?

(The language is perl 5.10, by the way, on Windows 2003 Server)

Name: Anonymous 2011-01-19 13:38

>>1
Both are NP-complete and you should forget about it.

Name: VIPPER 2011-01-19 13:38

get perl 5.12

Name: Anonymous 2011-01-19 13:43

>>3

5.10 it is, sorry.... It's a requirement from the customer.

Name: Anonymous 2011-01-19 13:45

Really? I wasted my time reading all that for the question to be “Are ftp:// and file:// "URIs" or "URLs"?”

Name: Anonymous 2011-01-19 13:48

They're both, of course, but only queers say URI.

Name: VIPPER 2011-01-19 13:48

>>4
Thats no problem friend, tell you customer that he is advised to get the newer version and keep his system updated.
Should he refuse: take a brick, stuff it in his mouth, kick him in the guts and tell him to go die in a fire.

Hope this helps.

Name: Anonymous 2011-01-19 13:51

>>5
But, if i call my class "URIdestination", mail is one kind of URI/URL too?
And bcp too?

Name: Anonymous 2011-01-19 14:39

Name: Anonymous 2011-01-19 16:58

just call your class ReportDestination

</thread>

Name: Anonymous 2011-01-31 19:44

<-- check em dubz

Don't change these.
Name: Email:
Entire Thread Thread List