Main > Free Download Search >

Free celsius ws software for linux

celsius ws

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 44
CelSius WS 1.0.1

CelSius WS 1.0.1


CelSius Web Script is a C++ written all-new and accurate scripting language. more>>
CelSius Web Script is a C++ written all-new and accurate scripting language, optimized for web, but which can be used with files or directly from command-line. WS stands for Web Script.

Whats New in This Release:

ï¿1⁄2 Speed increases (code cleanup), better string control, POST variables, URL decoding, and the functions readfile, writefile, url_decode, chdir, readdir, interpret, and eval.

<<less
Download (0.010MB)
Added: 2006-03-17 License: GPL (GNU General Public License) Price:
1318 downloads
PlaySMS 0.8.1

PlaySMS 0.8.1


PlaySMS is a flexible Web-based Mobile Portal System. more>>
PlaySMS is a flexible Web-based Mobile Portal System. PlaySMS can be made to fit to various services such as an SMS gateway, personal messaging systems, corporate and group communication tools.
Main features:
- Multiple database engine supported (using PEAR DB)
- Available for shared database usage (tables using its own prefix)
- Send SMS to single mobile phone (web2mobile)
- Send SMS broadcasted (bulk SMS) to a group of mobile phones (web2mobiles)
- Support sending flash and unicode message
- Receive private SMS to Inbox (mobile2web)
- Forward single SMS from mobile phone to a group of mobile phones (mobile2mobiles)
- SMS autoreply, for easy autoreplying formatted incoming SMS
- SMS board, forward received SMS to email,html and/or xml page
- SMS command, execute server side shell script using SMS
- SMS custom, forward incoming SMS to custom SMS application
- SMS poll, manage polling system using SMS
- Simple webservices for sending SMS and retrieving delivery reports (ws.php)
- Create your own gateway module other than Gnokii, Kannel or sms server Clickatell
- Easy webbased control panel
<<less
Download (0.15MB)
Added: 2006-05-08 License: GPL (GNU General Public License) Price:
1276 downloads
GlassHUDX 0.6

GlassHUDX 0.6


GlassHUDX is a beautiful system monitoring theme for SuperKaramba. more>>
GlassHUDX is a beautiful system monitoring theme for SuperKaramba. GlassHUDX is inspired by the wonderful GlassHUD theme from mytharak. It uses modified versions of the backgrounds and some of the layout ideas.

GlassHUDX consists of the following widgets:

Glassmem - a memory sensor widget

Displays total memory, used memory,free memory w/o buffers/cache and free memory including buffers/cache.
Middle-clicking the widget displays the top 10 processes using memory resources.

Glasscpu - a simple CPU monitor

Displays CPU type and CPU clock and shows CPU usage as graph.
Middle-clicking the widget displays the top 10 processes using CPU resources.
The design is very close to the original GlassHUD CPU monitor.

Glassclock - a simple time and date display

Simple clock in 12/24 hour format.
Launches Korganizer when you click on the date meter.
Configuration option for 24 hour or 12 hour display.
Configuration option for date format strings.

Glasstemp - a sensor widget

Displays CPU temperature, MB temperature and CPU fan speed.
Temperatures are in Celsius. To display temperatures in
Fahrenheit, add TEMPUNIT=F to the KARAMBA line in glasstemp.theme.

You need the sensors program installed for this widget to work.

Glassmounter - a device mounter inspired by Ibayuks MountApp for WMaker

Mounts devices and displays the mount state of the selected device. Any number of devices can be added. The selected device can be mounted, unmounted or ejected (if supported). Clicking on the device name mounts the device (if unmounted) and launches a filemanger. The filemanager command can be configured (default is "kfmclient exec").

Glasswifi - a wireless monitor and launch widget

Starts/stops a wireless interface.
Displays the link quality and either signal/noise level or bytes in/out.
The wireless interface can be set through the configuration menu (default is ath0)

Have a look at the README for the configuration of the widgets

Any bug reports and improvements are welcome.

<<less
Download (0.10MB)
Added: 2006-06-28 License: GPL (GNU General Public License) Price:
1213 downloads
Surblhost 0.8.0

Surblhost 0.8.0


Surblhost project is a small program to see if hostnames are listed in the Spam URI Realtime Blocklists (SURBL). more>>
Surblhost project is a small program to see if hostnames are listed in the Spam URI Realtime Blocklists (SURBL).

Hosts that are blacklisted means that global spam email have been reported to contain links to these hosts.

Many popular spam email filters use these lists to identify spam email, but this program makes it possible to use the lists for any conceivable purpose, such as filtering out bad hosts from URL redirection, and so on.

Examples:

Verbose output

$ surblhost -v bigredskhoediet.com clowndiket.com
checking against multi.surbl.org
bigredskhoediet.com.multi.surbl.org is blacklisted by [jp][ab][ob][sc][ws]
clowndiket.com.multi.surbl.org is blacklisted by [jp][ob][sc][ws]

see http://www.surbl.org/lists.html for more information on the blacklists

More verbose output

$ surblhost -vv --test
test.sc.surbl.org.sc.surbl.org 127.0.0.2 is blacklisted by spamcop
test.sc.surbl.org.sc.surbl.org txt record: sc.surbl.org permanent test point

Whitelisting and stripping of subdomains

$ surblhost -vv -s www.google.com
checking against multi.surbl.org
google.com is in whitelist

Recognition of two-level TLDs

$ surblhost -vv -s www.somewhere.co.uk
checking against multi.surbl.org
somewhere.co.uk.multi.surbl.org is not blacklisted

Blocked site discovered using recursive checking

# NO HIT
$ surblhost -v 156.tissuqeweightloss.com
checking against multi.surbl.org
warning: hostname contains subdomains: 156.tissuqeweightloss.com (try option -r)
156.tissuqeweightloss.com.multi.surbl.org is not blacklisted

# OPTION -r GIVES HIT
$ surblhost -v -r 156.tissuqeweightloss.com
checking against multi.surbl.org recursively
156.tissuqeweightloss.com.multi.surbl.org is not blacklisted
tissuqeweightloss.com.multi.surbl.org is blacklisted by [jp][ob][sc][ws]

see http://www.surbl.org/lists.html for more information on the blacklists
<<less
Download (0.086MB)
Added: 2007-04-09 License: GPL (GNU General Public License) Price:
928 downloads
Axis2 0.94

Axis2 0.94


Apache Axis2 is a next generation Web Services stack (client and server) written in Java that supports asynchronous calling. more>>
Apache Axis2 is a next generation Web Services stack (client and server) written in Java that supports asynchronous calling, a high-performance object model, WS-Addressing, and a powerful extensibility model that supports WSReliableMessaging, WS-Sec, and WS-AtomicTransactions.
Main features:
- AXIOM, an XML object model working on StAX (Streaming API for XML) parsing optimized for SOAP 1.1/1.2 Messages. This has complete XML infoset support.
- Support for One-Way Messaging (In-Only) and Request Response Messaging (In-Out)
- Module Architecture, mechanism to extend the SOAP Processing Model
- Module version support , can have multiple versions of the same module and use them depending on the requirement.
- Content hierarchy
- Archive based deployment Model and Directory based deployment model
- JWS like deployment (making Java class into Web service)
- WSDL Code Generation Tool for Stub and skeletons
- WS-Addressing, both the submission (2004/08) and final (2005/08) versions
- WSS4J module for security
- Improved and user friendly Client API
- WSDL2Java
- REST (REpresentational State Transfer) Support
- Transports supports: HTTP, SMTP, TCP, JMS
- Raw XML providers
- Support for MTOM/ MIME/ SwA
- SAAJ implementation
- DOOM - New Feature
- Pack/Unpack capability for the generated code- New Feature
- Axis Data Binding - ADB (Framework and Schema Compiler)
- Numerous bug fixes since last release
Enhancements:
- Fixing of memory leaks
- Client API changes , Introducing ServiceClient instead of MEPClient, InOnlyMEPClient, InOutMEPClient, Call. (Please note that the above classes will be deprecated in this release.)
- Module versioning support , can have multiple versions of the same module and use them depending on the requirement.
- Code generator improved to process multi-port WSDLs properly
- Packing and unpacking options for the code generated classes
<<less
Download (0.79MB)
Added: 2006-01-16 License: The Apache License 2.0 Price:
1391 downloads
Eclipse Web Tools Platform Project 1.0

Eclipse Web Tools Platform Project 1.0


Eclipse Web Tools Platform Project is a top-level Eclipse project that contains tools for developing Java Web applications. more>>
Eclipse Web Tools Platform Project is a top-level Eclipse project that contains tools for developing Java Web applications.
The WTP project includes the following tools: source editors for HTML, Javascript, CSS, JSP, SQL, XML, DTD, XSD, and WSDL; graphical editors for XSD and WSDL; J2EE project natures, builders, and models and a J2EE navigator; a Web service wizard and explorer, and WS-I Test Tools; and database access and query tools and models.
Main features:
- Extension of the Eclipse value proposition The Eclipse Project has set a high standard for technical excellence, functional innovation and overall extensibility within the Java IDE domain. We intend to apply these same standards to the Web/J2EE application-tooling domain.
- Vendor ecosystem A major goal of this project is to support a vital application development tools market. Its exemplary functionality will be useful on its own but it will be designed from the start to be extensible so commercial vendors can use what this project delivers as a foundation for their own product innovation and development efficiency.
- Vendor neutrality Vendor neutrality will be at the core of this project. We aim to encourage Eclipse participation and drive Eclipse market acceptance by strengthening the long-term product value propositions of the widest possible range of application development vendors.
- Standards-based innovation This project will deliver an extensible, standards-based tooling foundation on which the widest possible range of vendors can create value-added development products for their customers and end-users. Where standards exist, we will adhere to them. At least, at first, where standards are emerging, we will wait for them to emerge; this can be re-evaluated later according to user needs and contributor availability. Where multiple technologies are widely used for a given functional need, we will attempt to support each, subject only to technical feasibility and our goal of providing the most capable and extensible foundation long term.
- Agile development Our aim is to incorporate into our planning process the innovations that arise once a project is underway, and the feedback from our user community on our achievements to date. We think an agile development and planning process, in which progress is incremental, near-term deliverables are focused, and long-term planning is flexible, will be the best way to achieve this.
- Inclusiveness & diversity We aim to assimilate the best ideas from the largest number of participants representing the needs of the widest range of end-users. So we will encourage organizations across a broad range of technical, market and geographical domains to participate in this project.
<<less
Download (174.5MB)
Added: 2006-01-16 License: Eclipse Public License Price:
1378 downloads
Apache Synapse 1.0

Apache Synapse 1.0


Apache Synapse is a mediation framework for Web Services. more>>
Apache Synapse is a mediation framework for Web Services. Synapse allows messages flowing through, into, or out of an organization to be mediated. Synapse, incidentally, is pronounced "sine-apse", and not "sin-apse".
Main features:
- A streamlined configuration model and a new XML syntax
- Proxy Services (service mediation) and Message mediation
- Concept of Endpoints
- Integration of a Registry and dynamic refresh of resources as well as rules used to mediate
- Support for http and JMS transports
- Support for WS-Reliable Messaging and WS-Security through WS-Policies
- Script mediator supporting all BSF scripting languages
- Support for error handling and recovery
- Support for WS-RM sequences
- Many built in mediators
- Maven 2 based build process
- Many samples and a built-in Axis2 server to try out and experiment with samples (Samples includes WS-Security, JMS POX/Text messages, Script mediation and many more samples which can be run out of the box)
- Enhanced documentation
Enhancements:
- Significant improvements including non-blocking HTTP and HTTPS transports, better samples, and better documentation.
<<less
Download (9.8MB)
Added: 2007-06-08 License: The Apache License 2.0 Price:
868 downloads
idl2xsd 0.41

idl2xsd 0.41


idl2xsd is an IDL compiler to W3C XML Schema. more>>
idl2xsd is an IDL compiler to W3C XML Schema.

SYNOPSIS

idl2xsd [options] spec.idl

OPTIONS

All options are forwarded to C preprocessor, except -b -h -i -q -s -t -v -x.

With the GNU C Compatible Compiler Processor, useful options are :

-D name
-D name=definition
-I directory
-I-
-nostdinc

Specific options :

-b base uri

Specify a base uri for location of import.

-h

Display help.

-i directory

Specify a path for import (only for IDL version 3.0).

-q

Generate qualified elements.

-s

Generate a standalone Schema (not only type definition).

-t

Generate tabulated XML (beautify for human).

-v

Display version.

-x

Enable export (only for IDL version 3.0).

idl2xsd parses the given input file (IDL) and generates :

a W3C Schema spec.xsd following the CORBA to WSDL/SOAP Interworking Specification (WS-I comformant soap binding).

idl2xsd is a Perl OO application what uses the visitor design pattern. The parser is generated by Parse::Yapp.

idl2xsd needs XML::DOM module.

idl2xsd needs a cpp executable.

CORBA Specifications, including IDL (Interface Definition Language) and CORBA to WSDL/SOAP Interworking Specification are available on http://www.omg.org/.

<<less
Download (0.016MB)
Added: 2007-05-30 License: Perl Artistic License Price:
878 downloads
ActiveBPEL 4.0 Final

ActiveBPEL 4.0 Final


The ActiveBPEL engine is a robust runtime environment. more>>
ActiveBPEL project is a robust runtime environment capable of executing process definitions created according to the Business Process Execution Language for Web Services (BPEL4WS, or just BPEL) 1.1 specifications.
Main features:
Completeness
- The ActiveBPEL engine comprehensively implements the BPEL4WS 1.1 spec including the full complement of BPEL activities, event handling, exception handling and scope/compensation management.
Industrial Strength
- In addition to comprehensive BPEL 1.1 support, the ActiveBPEL engine includes high-end features like deployment packaging, process persistence, event notifications and console APIs.
Growth Track
- As a distributor of commercial products based on the ActiveBPEL engine, AEI is committed to the ongoing development of ActiveBPEL technologies. The ActiveBPEL open source project will continually benefit from the contributions of both AEI and the ActiveBPEL community at large.
Enhancements:
- This release provides support for message attachments with WS-BPEL 2.0 processes.
- It also introduces a WS-I compliant administrative interface and deprecates the old RPC style interface.
<<less
Download (13.5MB)
Added: 2007-07-05 License: GPL (GNU General Public License) Price:
871 downloads
idl2soap 0.41

idl2soap 0.41


idl2soap is an IDL compiler to WSDL/SOAP (Web Services Description Language). more>>
idl2soap is an IDL compiler to WSDL/SOAP (Web Services Description Language).

SYNOPSIS

idl2soap [options] spec.idl

OPTIONS

All options are forwarded to C preprocessor, except -b -h -i -q -s -t -v -x.

With the GNU C Compatible Compiler Processor, useful options are :

-D name
-D name=definition
-I directory
-I-
-nostdinc

Specific options :

-b base uri

Specify a base uri for location of import.

-h

Display help.

-i directory

Specify a path for import (only for IDL version 3.0).

-q

Generate qualified elements.

-s (xsd|rng)

Specify the schema used. By default xsd.

-t

Generate tabulated XML (beautify for human).

-v

Display version.

-x

Enable export (only for IDL version 3.0).

idl2soap parses the given input file (IDL) and generates :

a WSDL file spec.wsdl following the CORBA to WSDL/SOAP Interworking Specification (WS-I comformant soap binding).

a WSDL binding file specbinding.wsdl (WS-I comformant soap binding).

idl2soap is a Perl OO application what uses the visitor design pattern. The parser is generated by Parse::Yapp.

idl2soap needs XML::DOM module.

idl2soap needs a cpp executable.

<<less
Download (0.016MB)
Added: 2007-05-31 License: Perl Artistic License Price:
876 downloads
idl2wsdl 0.41

idl2wsdl 0.41


idl2wsdl is an IDL compiler to WSDL (Web Services Description Language). more>>
idl2wsdl is an IDL compiler to WSDL (Web Services Description Language).

SYNOPSIS

idl2wsdl [options] spec.idl

OPTIONS

All options are forwarded to C preprocessor, except -b -h -i -q -s -t -v -x.

With the GNU C Compatible Compiler Processor, useful options are :

-D name
-D name=definition
-I directory
-I-
-nostdinc

Specific options :

-b base uri

Specify a base uri for location of import.

-h

Display help.

-i directory

Specify a path for import (only for IDL version 3.0).

-q

Generate qualified elements.

-s (xsd|rng)

Specify the schema used. By default xsd.

-t

Generate tabulated XML (beautify for human).

-v

Display version.

-x

Enable export (only for IDL version 3.0).

idl2wsdl parses the given input file (IDL) and generates :

a WSDL file spec.wsdl following the CORBA to WSDL/SOAP Interworking Specification (WS-I comformant soap binding).

idl2wsdl is a Perl OO application what uses the visitor design pattern. The parser is generated by Parse::Yapp.

idl2wsdl needs XML::DOM module.

idl2wsdl needs a cpp executable.

<<less
Download (0.016MB)
Added: 2007-05-31 License: Perl Artistic License Price:
545 downloads
Open 4GL WebServices 0.2 Beta

Open 4GL WebServices 0.2 Beta


Open 4GL WebServices is an opensource project to implement a wizard and a framework. more>>
Open 4GL WebServices is an opensource project to implement a wizard and a framework to make it easy to publish PROGRESS procedures as WebServices generating the WSDL and WS code, without requiring the developer to learn XML or the framework itself.
With this tool the developer can select an existing PROGRESS procedure and produce the WSDL file and/or a proxy procedure that handle the SOAP call and translate between SOAP and PROGRESS datatypes. Open 4GL WebServices also can handle the WS-I security recommendation requiring a custom procedure to authenticate the user/password.
Also, the generated proxy procedure is based on procedure templates (skeletons), these templates allow the developer to choose how to deploy the webservice. The developer can choose between webspeed, a batch version to call it from a CGI, a socket based version, or a custom template, etc.
This kind of project had been there for years, i had read some documents about howto build it, but nobody had been released the complete solution as open source by now. Its an alternative to the commercial version distributed by PROGRESS, only that this version doesnt require Sonic MQ or the AppServer to run properly.
Installation:
Put the entire o4glws directory somewhere in the PROPATH and make a copy the
file o4glws.i in any directory in the PROPATH of the deployment machine, because its needed to compile the deployed webservice adapter procedures.
INCLUDED FILES
o4glwsAdapter.p Webservice adapter generator
o4glwso4glws.i Library included in every adapter
o4glwso4glws.w Wizard to generate adapter/WSDL files
o4glwsprocDlg.w Dialog to select the procedures to include in the
webservice
o4glwsprocInfo.i Temp-table definitions used by all programs
o4glwsprocInfo.p Extracts the information about internal procedure,
functions and temp-tables of a procedure file
o4glwsREADME.TXT This file
o4glwsLicense.txt Software license
o4glwstransparent.ico The wizards icon
o4glwsWizard3.gif One of the wizards images
o4glwsSuccess.gif One of the wizards images
o4glwsError.gif One of the wizards images
o4glwsWSDL.p WSDL adapter generator
o4glwssample Samples of the generated code
o4glwstemplates Templates used to generate adapters
Enhancements:
- A "Unable to use Namespace: []" message was removed.
- Malformed Web service addresses were corrected.
- A problem where the generated WSDL did not correctly describe the output parameters of the Adapters was fixed.
- Buffer handlers for output tables are no longer needed.
- Date parameters are now supported.
- Speed for output tables was optimized.
- Expiration date and time parameters were added to securityTemplate.p.
- A fault report was added.
<<less
Download (0.060MB)
Added: 2006-05-04 License: GPL (GNU General Public License) Price:
1269 downloads
onesixtyone SNMP scanner 0.3.2

onesixtyone SNMP scanner 0.3.2


onesixtyone is an efficient SNMP scanner which utilizes a sweep technique to achieve extreme performance. more>>
onesixtyone is an efficient SNMP scanner which utilizes a sweep technique to achieve extreme performance. The SNMP protocol is a stateless, datagram oriented protocol. An SNMP scanner is a program that sends SNMP requests to multiple IP addresses, trying different community strings and waiting for a reply. Unfortunately SNMP servers dont respond to requests with invalid community strings and the underlying UDP protocol does not reliably report closed UDP ports. This means that no response from the probed IP address can mean either of the following:
machine unreachable
SNMP server not running
invalid community string
the response datagram has not yet arrived
The approach taken by most SNMP scanners is to send the request, wait for n seconds and assume that the community string is invalid. If only 1 of every hundred scanned IP addresses responds to the SNMP request, the scanner will spend 99*n seconds waiting for replies that will never come.
Thats why traditional SNMP scanners are very inefficient.
onesixtyone takes a different approach to SNMP scanning. It takes advantage of the fact that SNMP is a connectionless protocol and sends all SNMP requests as fast as it can. Then the scanner waits for responses to come back and logs them, in a fashion similar to Nmap ping sweeps. By default onesixtyone waits for 10 milliseconds between sending packets, which is adequate for 100Mbs switched networks. The user can adjust this value via the -w command line option. If set to 0, the scanner will send packets as fast as the kernel would accept them, which may lead to packet drop.
Running onesixtyone on a class B network (switched 100Mbs with 1Gbs backbone) with -w 10 gives us a performance of 3 seconds per class C, with no dropped packets. All 65536 IP addresses were scanned in less than 13 minutes.
onesixtyone sends a request for the system.sysDescr.0 value, which is present on almost all SNMP enabled devices. This returned value gives us a description of the system software running on the device. Here is an excert of a log file:
192.168.120.92 [1234] HP ETHERNET MULTI-ENVIRONMENT,ROM A.05.03,JETDIRECT,JD24,EEPROM A.05.05
130.160.108.146 [public] Hardware: x86 Family 15 Model 0 Stepping 10 AT/AT
COMPATIBLE - Software: Windows 2000 Version 5.0 (Build 2195 Uniprocessor Free)
192.168.112.64 [public] Power Macintosh, hardware type 406; MacOS 9.0; OpenTransport 2.5.2
192.168.104.254 [public] Novell NetWare 4.11 August 22, 1996
192.168.112.83 [public] Macintosh Quadra 650, System Software 7.1
192.168.244.210 [public] RICOH Aficio 850 / RICOH Network Printer D model
192.168.240.39 [public] Cisco Systems WS-C5000
192.168.244.103 [public] HPJ3210A AdvanceStack 10BT Switching Hub Management Module, ROM A.01.02, EEPROM A.01.01, HW A.01.00
Enhancements:
- fixed version number and added a Makefile
<<less
Download (0.007MB)
Added: 2006-07-03 License: GPL (GNU General Public License) Price:
1215 downloads
Acme::Test::Weather 0.2

Acme::Test::Weather 0.2


Acme::Test::Weather is a Perl module to test the weather conditions for a user. more>>
Acme::Test::Weather is a Perl module to test the weather conditions for a user.

SYNOPSIS

use Test::Weather;
plan tests => 2;

# You may only install something
# when its nice outside.

&isnt_snowing();
&isnt_cloudy();

# output:

1..2
ok 1 - its partly cloudy in Montreal, Canada
not ok 2 - its partly cloudy in Montreal, Canada
# Failed test (./t/mtl.t at line 5)
# Partly Cloudy
# matches (?i-xsm:bcloudy)
# Looks like you failed 1 tests of 2.

The package determines a users location by looking up their hostname / IP address using the CAIDA::NetGeo::Client package.

Based on the data returned, weather conditions are polled using the Weather::Underground package.

Because, you know, it may be important to your Perl module that its raining outside...

PACKAGE FUNCTIONS

&is_cloudy()

Make sure it is cloudy, but remember the silver lining.

&isnt_cloudy()

No clouds. Not even little fluffy ones.

&is_raining()

Make sure it is raining.

&isnt_raining()

Make sure sure it is not raining.

&is_snowing()

Make sure it is snowing.

&isnt_snowing()

Make sure it is not snowing.

&is_sunny()

Make sure it is sunny.

&isnt_sunny()

Make sure it is not sunny. Why are you so angry?

&eq_celsius($int)

Temperature in degrees Celsius.

>_celsius($int)

Cooler than, in degrees Celcius.

_fahrenheit($int)

Warmer than, in degrees Fahrenheit.

_humidity($int)

Humidity is greater than.

<<less
Download (0.005MB)
Added: 2007-03-19 License: Perl Artistic License Price:
949 downloads
Whitespace 1.02

Whitespace 1.02


Whitespace is a Perl module to cleanup various types of bogus whitespace in source files. more>>
Whitespace is a Perl module to cleanup various types of bogus whitespace in source files.

SYNOPSIS

use Whitespace;

# Instantiate a whitespace object with
# both input and output files specified
$ws = new Whitespace($infile, $outfile);

# Instantiate a whitespace object with
# only the input files specified (in-place cleanup)
$ws2 = new Whitespace($infile);

# Detect the whitespaces
$ret = $ws->detect();

detect returns undef if it is unable to operate on the given file.

The error that caused the undef can be retrieved using error

print $ws->error() . "n" unless defined $ret;

detect returns the types of whitespaces detected as a hash which can be retrieved using the method status. The populated hash might look like this, if the file only had leading, trailing and end-of-line spaces (say on 3 lines).

%stat = %{$env->status()};
print map "$_ => $stat{$_}n", sort keys %stat;

eol => 3
indent => 0
leading => 1
spacetab => 0
trailing => 1

Cleanup can be achieved for all the whitespaces or for just a given type of whitespace, using the following methods.

If a outfile is given, the cleaned contents are written to this file. If not, the contents are replaced in-place. undef is returned if there was an error writing the file.

# To cleanup the all the whitespaces
$ret = $env->cleanup();

# To cleanup leading whitespaces only
$leadstat = $env->leadclean();

# To cleanup trailing whitespaces only
$trailstat = $env->trailclean();

# To cleanup indentation whitespaces only
$indentstat = $env->indentclean();

# To cleanup space-followed-by-tabs only
$sftstat = $env->spacetabclean();

# To cleanup end-of-line whitespaces only
$eolstat = $env->eolclean();

<<less
Download (0.004MB)
Added: 2007-05-10 License: Perl Artistic License Price:
897 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 3
  • 1
  • 2
  • 3